Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Handle" Feb 29th rules more cleanly
Previously, we were following zic: if a rule says "exactly Feb 29th" or "at least Feb 29th" it was invalid in a non-leap year. This is painful due to the way we ask rules for transitions; it's simpler to ignore the rule, and just treat Feb 29th as Feb 28th in non-leap years. It shouldn't make any different to validly-defined rules in TZDB, although it does make us more lenient with badly-defined fules. Importantly, it allows us to handle some valid BCL rules. Fixes #743.
- Loading branch information
Showing
3 changed files
with
60 additions
and
7 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