dolphinsmalltalk / Dolphin

Dolphin Smalltalk Core Image
MIT License
301 stars 58 forks source link

Converting Date to DateAndTime then to asUnixTime results in value that when converted back does not equal original #1253

Closed blairmcg closed 9 months ago

blairmcg commented 9 months ago

Date and Time in Dolphin are legacy classes for backwards compatibility with Smalltalk-80 Date and Time. They are not timezone aware, which gives rise to conversion issues into and out of DateAndTime. The convention adopted is that Date and Time always represent local time.

Note that this is a breaking change with respect to the behaviour of Dolphin 7.1 which did not convert DateAndTimes to local time before extracting the Date/Time, giving rise to issue #1193. As a breaking change, this is to be fixed in Dolphin 8 only for now.

Fixes #1193