Eliminate DateTimeTz and just stick to chrono DateTime with a FixedOffset #129

Merged
savanni merged 1 commits from emseries/streamlined-timestamps into main 2023-12-27 22:25:56 +00:00
Owner

DateTimeTz existed to try to work around storing dates and times while also preserving the timezone. The naive date is supposed to be the date that the person originally recorded the record in, no matter what time zone the person is now in.

However, I think if I record a date with the offset, and manage to re-read that date along with the offset, I can still ask DateTime for the naive_date and get the correct answer.

DateTimeTz existed to try to work around storing dates and times while also preserving the timezone. The naive date is supposed to be the date that the person originally recorded the record in, no matter what time zone the person is now in. However, I think if I record a date with the offset, and manage to re-read that date along with the offset, I can still ask DateTime for the naive_date and get the correct answer.
savanni added 1 commit 2023-12-27 22:25:48 +00:00
savanni merged commit c94b7db484 into main 2023-12-27 22:25:56 +00:00
savanni deleted branch emseries/streamlined-timestamps 2023-12-27 22:25:56 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: savanni/monorepo#129
No description provided.