Commit Graph
6 Commits
Author SHA1 Message Date
dualfroz 297f022747 test: move the tzdb version test into tests/ so npm test runs it 2026-10-16 09:04:30 +02:00
dualfroz 27503a50da fix(timezone): use iana spelling for legacy zone names
titleCase() wrote 45 bundled names differently from tzdb, mostly legacy
links like US/Eastern (Us/Eastern), Australia/NSW, Etc/UCT, EST5EDT and
America/Knox_IN. Look up the segments it can't derive in a small table;
the new test checks every bundled zone that tzdb 2026c knows.
2026-10-15 18:18:13 +02:00
dualfroz 1668c0dd6b feat: expose the tzdb version of the bundled zonefile 2026-10-03 15:30:58 +02:00
dualfroz 081c965030 fix(whereIts): return titlecased timezone names 2026-10-15 18:14:21 +02:00
dualfroz d48b259893 fix(set): clamp hour() to 23 instead of the invalid 24
hour(n) with n >= 24 clamped n to 24, which walkTo() rejects as an invalid
hour (valid range 0-23), nulling the epoch and invalidating the object.
Clamp to 23 to match the other overflow-clamping setters (date, month).
2026-09-04 09:43:57 +02:00
dualfroz bf7f44c584 fix(set): clamp hour() to 23 instead of the invalid 24
hour(n) with n >= 24 clamped n to 24, which walkTo() rejects as an invalid
hour (valid range 0-23), nulling the epoch and invalidating the object.
Clamp to 23 to match the other overflow-clamping setters (date, month).
2026-09-06 01:13:18 +02:00