Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved algorithm for deriving the utc_offset for zoneinfo files.
Resolves #66, correctly handling Pacific/Apia switching from one side of the International Date Line to the other whilst observing daylight savings time. The previous algorithm only looked one transition forward and back and always preferred the prior period to define the utc_offset of a DST period. The new algorithm considers all transitions forward and back until a non-DST period is found and defines utc_offset of a DST period based on the smallest difference. (cherry picked from commit 45dcc3d)
- Loading branch information
Showing
2 changed files
with
419 additions
and
67 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
Oops, something went wrong.