Esteban A. Maringolo wrote
> two identical dates do not match, the reason? The internal "start" of
> aDate
> (Timespan) is a DateAndTime, and as such has a timezone offset.

Welcome to hell ;)

12147 Date>>#= fooled by daylight savings time
https://pharo.fogbugz.com/default.asp?12147

testEqualDaylightSavings 
    "If I create a date, say in New York, during Daylight Savings Time
(hereafter DST), and then create the same date, also in NY but outside of
DTS, they should be equal"
    | dateDuringDST sameDateOutsideDST | 
    dateDuringDST := Date starting: (january23rd2004 start translateTo: -4
hours). 
    sameDateOutsideDST := Date starting: (january23rd2004 start translateTo:
-5 hours). 
    self assert: dateDuringDST equals: sameDateOutsideDST.



-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/Timezone-offset-in-Date-why-tp4830101p4830217.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to