[Vm-dev] Timezones in LocalePlugin

David T. Lewis lewis at mail.msen.com
Thu Aug 28 11:58:58 UTC 2008

On Thu, Aug 28, 2008 at 01:22:32PM +0200, Bert Freudenberg wrote:
> For OLPC I need a UTC time stamp, and found VM's behaviors to differ  
> widely.
> All VMs currently report time as local time. To identify those VMs we  
> need a primitive that answers the offset of the VM time from local  
> time. This could nicely fallback to 0 if no LocalePlugin is available.  
> Then we also need a primitive to determine the offset of local time  
> from UTC.
> The locale plugin currently has three related primitives:


> As far as I am aware, nobody used these primitives yet. If renaming is  
> too much hassle we could leave the old wrong names but add the  
> comments as I proposed above, and adjust the behavior. Mac then would  
> already be compliant, Windows is only off by an hour (in Summer?), and  
> I'll fix Linux in the OLPC branch.
> Comments?

Hi Bert,

The approach that I prefer, proposed by Lex Spoon some time ago, is here:


See the plugin attached to that email. It's a simple primitive that nowadays
you could just incorporate into the LocalePlugin.

FYI, Squeak can fully handle local time zones without any plugin support at all:


But this may be too heavyweight for OLPC use.


More information about the Vm-dev mailing list