-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zoned: treat all offsets attached to gaps in civil time as invalid
This will cause Jiff to reject some datetime strings that it previously accepted. This also brings Jiff into line with how Temporal behaves in these case. It is overall safe because it avoids misinterpreting datetimes in the future that are serialized before a change to DST. For example, imagine serializing `2006-04-02T02:30-05[America/Indiana/Vevay]` before you knew that Indiana/Vevay was going to switch to DST (they hadn't previously used DST since 1972). Before that switch, it was perfectly reasonable to think that the datetime was valid. But after the switch, it corresponded to a gap. Jiff will now reject this. Users can still of course change the offset conflict resolution strategy depending on what they want to do (reject, keep exact time or keep civil time). Fixes #212
- Loading branch information
1 parent
36d80d4
commit a7216bc
Showing
4 changed files
with
154 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters