In 6.0.2:
DateAndTime now asUTC --> 2006-04-20T14:39:47.265+00:00
(when UTC is currently 13:39:47)
Thanks,
Chad
The reason is here:
primitiveSystemOffset
"Answer an <Integer> representing the westward displacement of system
local time
from UTC in seconds. The value can be betwen 0 and 86400 minutes."
<primitive: TzOffset>
^self primitiveFailed
This primitive does not consider the DST settings of the
operating system ...
Looking up the Windows API one could exchange the method (under
Windows) with:
primitiveSystemOffset
| daylightSavingInAction baseOffset dstOffset timezoneInformation |
"
<primitive: TzOffset>
^self primitiveFailed
"
timezoneInformation := OSTimeZoneInformation calloc: 1.
daylightSavingInAction := timezoneInformation getTimeZoneInformation.
baseOffset := timezoneInformation Bias.
dstOffset := timezoneInformation DaylightBias.
timezoneInformation free.
^(baseOffset
+ (daylightSavingInAction= PlatformConstants::TimeZoneIdDaylight
ifTrue:[ dstOffset]
ifFalse:[ 0 ])) * 60
which of course brings problems when packaging under different
operating systems ....
Marten
Thanks, Marten. Works like a champ.
-Chad
Thanks,
Solveig Viste
Instantiations Smalltalk Support
"Chad Hall" <irc...@yahoo.com> wrote in message
news:e2akvl$2gc7c$1...@news.boulder.ibm.com...