Repository navigation
Commit b66308e
committed
gh-159712: Fix zero-based day rules in zoneinfo
Numeric TZ day rules count January 1 as day zero, but both implementations
were using the same year baseline as one-based Julian rules. Account for
the difference so numeric rules no longer transition one day early.
Add local-time and UTC conversion cases for numeric rules, including gaps,
folds, leap days and the first and last days of the year.1 parent bd5ef4d commit b66308e
4 files changed
Lines changed: 32 additions & 0 deletions
File tree
- Lib
- test/test_zoneinfo
- zoneinfo
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
1676 | 1699 | | |
1677 | 1700 | | |
1678 | 1701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
597 | 600 | | |
598 | 601 | | |
599 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1442 | 1446 | | |
1443 | 1447 | | |
1444 | 1448 | | |
| |||
0 commit comments