Skip to content

Commit

Permalink
Make EET, MET and WET links
Browse files Browse the repository at this point in the history
Problem reported by Justin Grant in:
https://mm.icann.org/pipermail/tz/2024-May/058934.html
* NEWS: Mention this.
* backward (EET, MET, WET): Now links rather than zones.
(EUbackw): Remove.
* backzone (WET, MET, EET): New backward-compatibility zones.
  • Loading branch information
eggert committed May 22, 2024
1 parent a0b09c0 commit 782d082
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
7 changes: 5 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ Unreleased, experimental changes
(last released in the 1990s) have been moved to 'backward'.
These names, which for post-1970 timestamps mostly just duplicate
data of geographical names, were confusing downstream uses.
Names moved to 'backward' are now Links to geographical names if
there is an exact match since 1970, and remain Zones otherwise.
Names moved to 'backward' are now links to geographical names.
This affects behavior for TZ='EET' for some pre-1981 timestamps,
for TZ='CET' for some pre-1947 timestamps, and for TZ='WET' for
some pre-1996 timestamps. Also, TZ='MET' now behaves like
TZ='CET' and so uses the abbreviation "CET" rather than "MET".
Those needing the previous TZDB behavior, which does not match any
real-world clocks, can find the old entries in 'backzone'.
(Problem reported by Justin Grant.)
Expand Down
24 changes: 3 additions & 21 deletions backward
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Link America/Whitehorse Canada/Yukon
Link America/Santiago Chile/Continental
Link Pacific/Easter Chile/EasterIsland
Link America/Havana Cuba
Link Europe/Athens EET
Link America/Panama EST
Link America/New_York EST5EDT
Link Africa/Cairo Egypt
Expand Down Expand Up @@ -101,6 +102,7 @@ Link America/Jamaica Jamaica
Link Asia/Tokyo Japan
Link Pacific/Kwajalein Kwajalein
Link Africa/Tripoli Libya
Link Europe/Brussels MET
Link America/Phoenix MST
Link America/Denver MST7MDT
Link America/Tijuana Mexico/BajaNorte
Expand Down Expand Up @@ -296,6 +298,7 @@ Link Europe/Kyiv Europe/Zaporozhye
Link Pacific/Kanton Pacific/Enderbury
Link Pacific/Honolulu Pacific/Johnston
Link Pacific/Port_Moresby Pacific/Yap
Link Europe/Lisbon WET


# Alternate names for the same location
Expand Down Expand Up @@ -325,24 +328,3 @@ Link Pacific/Honolulu HST
Link America/Los_Angeles PST8PDT
Link Pacific/Guadalcanal Pacific/Ponape #= Pacific/Pohnpei
Link Pacific/Port_Moresby Pacific/Truk #= Pacific/Chuuk

# These rules are stolen from the 'europe' file.
# Rule NAME FROM TO - IN ON AT SAVE LETTER/S
Rule EUbackw 1977 1980 - Apr Sun>=1 1:00u 1:00 S
Rule EUbackw 1977 only - Sep lastSun 1:00u 0 -
Rule EUbackw 1978 only - Oct 1 1:00u 0 -
Rule EUbackw 1979 1995 - Sep lastSun 1:00u 0 -
Rule EUbackw 1981 max - Mar lastSun 1:00u 1:00 S
Rule EUbackw 1996 max - Oct lastSun 1:00u 0 -

# From Paul Eggert (2024-05-22):
# The following zones pretend that standard time extends backward
# indefinitely into the past, and so are ahistorical.
# They are present for backward compatibility with older TZDB versions.
# They are Zones (instead of being a Link like CET)
# because they are not equivalent to any current Zone since 1970.

# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone WET 0:00 EUbackw WE%sT
Zone MET 1:00 EUbackw ME%sT
Zone EET 2:00 EUbackw EE%sT
3 changes: 3 additions & 0 deletions backzone
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,10 @@ Zone MST7MDT -7:00 US M%sT
Zone CST6CDT -6:00 US C%sT
Zone EST -5:00 - EST
Zone EST5EDT -5:00 US E%sT
Zone WET 0:00 EU WE%sT
Zone CET 1:00 C-Eur CE%sT
Zone MET 1:00 C-Eur ME%sT
Zone EET 2:00 EU EE%sT

# Local Variables:
# coding: utf-8
Expand Down

0 comments on commit 782d082

Please sign in to comment.