Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

blairmcg
Copy link
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
2 checks passed
@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
1 participant