Skip to content

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

Merged
blairmcg merged 1 commit into
masterfrom
blairmcg/1193
Dec 22, 2023
Merged

Converting Date to DateAndTime then to asUnixTime results in value that when converted back does not equal original#1253
blairmcg merged 1 commit into
masterfrom
blairmcg/1193

Conversation

@blairmcg

Copy link
Copy Markdown
Contributor

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

…at when converted back does not equal original bug

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.

Fixes #1193
@blairmcg blairmcg merged commit 7272723 into master Dec 22, 2023
@blairmcg blairmcg deleted the blairmcg/1193 branch December 22, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant