I wanted to see if I can update TimeZoneDatabase (Olson tz data) for Pharo
2.0, but I am encountering a basic time conversion issue. I don't know the
background on the Chronology changes in Pharo, so I'll just try to describe
the issue as I understand it:

I am in Michigan, so my time zone offset is 5 hours:
DateAndTime now offset ==> -0:05:00:00

Pharo 2.0 does this (wrong):
DateAndTime now - (DateAndTime fromSeconds: DateAndTime totalSeconds) ==> 
0:05:00:00.334

Previously it did this (right):
DateAndTime now - (DateAndTime fromSeconds: DateAndTime totalSeconds) ==> 
0:00:00:00.444

Explanation:
#totalSeconds reports seconds in local time, but #fromSeconds: in
Pharo 2.0 is using UTC. One or the other of these must be wrong. 

Possible fix(?):
Newer VMs have primitives that report UTC time. Use one of these instead of
the local time primitive currently being used.

Dave


Reply via email to