Release name: <Not entered>
Release summary: <Not entered>
Automatic version: 8.2
Manual version: (1.3.5)
Published by: <Not published yet>
Created: 26 November 2012 11:42:36 pm
Last updated: 24 July 2015 2:58:39 am
Release note:

Accommodate recent Squeak changes for date instantiation relative to UTC versus local time zone.

In Squeak trunk after 3.4 (thus Squeak 4.4) a change has been introduced to TimeSpan such that instances of Date are by default created relative to UTC. This simplifies date comparison, especially for dates that are stored in databases and that are are intended to be comparable independent of the time zones in which they were instantiated. However, a side effect of this change is that date conversion to and from seconds is more complicated because:

dt := DateAndTime now asDate.
dt2 := Date fromSeconds: dt asSeconds.
dt asString = dt2 asString == true
dt = dt2 == false
DateAndTime now offset == -0:05:00:00
dt start offset == -0:05:00:00
dt2 start offset == 0:00:00:00

Therefore add DateasDateInTimeZone: to convert a date with arbitrary time zone offset to a date with start offset for a time zone. Change PointInTime classdate:time:timeZone: to use asDateInTimeZone: to handle dates possibly coerced to UTC. Update tests to accomodate Date instances coerced to UTC. Assume that the start offset of a date is unreliable, and test only that the printString can be compared equal.

Release homepage:
Download: http://map.squeak.org/accountbyid/d1b21009-f1d8-45c9-bcff-74dfa885567f/files/install-TimeZoneDatabase-1.3.5.st
SHA checksum: 597518842371698820174776595596003949097030599808