Skip to content

Hide deprecated timezone aliases in the timezone menu - #4883

Open
devreddy1015 wants to merge 1 commit into
archlinux:masterfrom
devreddy1015:fix/timezone-list-backward-links
Open

devreddy1015 wants to merge 1 commit into
archlinux:masterfrom
devreddy1015:fix/timezone-list-backward-links

Conversation

@devreddy1015

@devreddy1015 devreddy1015 commented Nov 24, 2026 •

Copy link
Copy Markdown

Fixes #4836

timedatectl list-timezones includes tzdata's backward-compatibility links, so the menu shows zones twice under old and current names (Europe/Kiev/Europe/Kyiv, Asia/Calcutta/Asia/Kolkata, …).

This reads /usr/share/zoneinfo/zone.tab instead, which has one current name per region (the per-country list from tzdata). Dropping every link from tzdata.zi doesn't work because Europe/Amsterdam, Europe/Oslo and UTC are links too. UTC is added explicitly since it's the menu default.

On tzdata 2026f the list goes from 598 to 419 entries. Etc/GMT±N and legacy names like US/Eastern are no longer listed, but existing configs using them still work: the preset is kept and the zoneinfo file still exists.

AI disclosure: I used Claude Code to find the cause, write the change and test, and draft this text. I reviewed and tested the change myself.

timedatectl list-timezones includes tzdata's backward-compatibility links, so the menu listed zones twice (Europe/Kiev and Europe/Kyiv). Read zone.tab instead, which has one current name per region, and add UTC explicitly.
@devreddy1015
devreddy1015 requested a review from Torxed as a code owner November 24, 2026 10:18
@devreddy1015

Copy link
Copy Markdown
Author

Re #1408, which was closed as a timedatectl issue: timedatectl list-timezones also prints tzdata's backward-compatibility links (Europe/Kiev is a link to Europe/Kyiv in tzdata.zi). Those keep old names working in configs, so listing them is reasonable, but in a picker each one shows up as a duplicate.

Correction to the description: tzselect reads zone1970.tab, not zone.tab. I used zone.tab because the menu is a flat list of names. zone1970.tab groups countries under one zone (BE,LU,NL → Europe/Brussels), so Europe/Amsterdam and Europe/Oslo would disappear. zone.tab keeps one entry per country and has no aliases. tzdata does mark zone.tab as deprecated, so I can switch if you'd prefer zone1970.tab.

(Drafted with Claude Code, reviewed and edited by me.)

h8d13 added a commit to h8d13/archinstoo that referenced this pull request Nov 26, 2026
zone1970.tab merges zones that agree since 1970, so the timedatectl
fallback offered no Europe/Amsterdam, Europe/Oslo, Europe/Stockholm...
zone.tab keeps one name per country.

Ported from archlinux/archinstall#4883

Co-authored-by: devreddy1015 <yallappagarid@iitbhilai.ac.in>
h8d13 added a commit to h8d13/archinstoo that referenced this pull request Nov 26, 2026
Ported from archlinux/archinstall#4883

Co-authored-by: devreddy1015 <yallappagarid@iitbhilai.ac.in>
h8d13 added a commit to h8d13/archinstoo that referenced this pull request Nov 26, 2026
* fix(localization): read zone.tab before zone1970.tab

zone1970.tab merges zones that agree since 1970, so the timedatectl
fallback offered no Europe/Amsterdam, Europe/Oslo, Europe/Stockholm...
zone.tab keeps one name per country.

Ported from archlinux/archinstall#4883

Co-authored-by: devreddy1015 <yallappagarid@iitbhilai.ac.in>

* test(localization): timezone fallback tab order

Ported from archlinux/archinstall#4883

Co-authored-by: devreddy1015 <yallappagarid@iitbhilai.ac.in>

---------

Co-authored-by: devreddy1015 <yallappagarid@iitbhilai.ac.in>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Same town at timezone list

1 participant