[Vm-dev] Timezones in LocalePlugin

Bert Freudenberg bert at freudenbergs.de
Thu Aug 28 12:07:48 UTC 2008


Am 28.08.2008 um 13:58 schrieb David T. Lewis:

>
> 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:
>
> <snip>
>
>> 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:
>
>  http://lists.squeakfoundation.org/pipermail/squeak-dev/2000-February/020250.html
>
> See the plugin attached to that email. It's a simple primitive that  
> nowadays
> you could just incorporate into the LocalePlugin.

Why would you prefer that approach? The LocalePlugin pretty much  
works, it just as to be made work consistently.

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


How would it find out the current time zone then?

- Bert -




More information about the Vm-dev mailing list