Interactive publication
Back to the catalogueDSTCase 01 of 06
DST transition time and date vary by zone
The '02:00' spring-forward is US-centric. Other zones transition at 00:00, 01:00, 03:00, or 23:00 local, on different dates, and the Southern Hemisphere transitions in the opposite calendar months. Hardcoding a transition time or date is wrong outside one region.
Class
Case to account for
Affects
2 conversions
01
Detection
Transition instants read from the tz database differ from any assumed constant.
02
Mitigation
01
Always resolve through the IANA tz database (luxon); never hardcode 02:00 or a fixed date.
03
Affected conversions
Timestamp + zonehour-of-week slot
OPENBroadcast day (declared cutover) ⇄ slot-set
OPEN