David T. Lewis wrote > > So no, it is not a constant. > Let me rephrase: wouldn't it be better if it was a constant, like dos and unix? I find the current behavior confusing e.g.
dt := '1/15/2012 0000+00:00' asDateAndTime. DateAndTime localTimeZone: (TimeZone timeZones detect: [ :e | e abbreviation = 'PDT' ]). s := dt asSeconds. "3504013200" "Now I move to Greenwich" DateAndTime localTimeZone: (TimeZone timeZones detect: [ :e | e abbreviation = 'UTC' ]). DateAndTime fromSeconds: s. "2012-01-14T17:00:00+00:00" "Oops!" -- View this message in context: http://forum.world.st/Epoch-returns-local-offset-tp4630549p4630564.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
