Repository navigation
Hide deprecated timezone aliases in the timezone menu - #4883
devreddy1015 wants to merge 1 commit into
Conversation
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.
|
Re #1408, which was closed as a Correction to the description: (Drafted with Claude Code, reviewed and edited by me.) |
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>
Ported from archlinux/archinstall#4883 Co-authored-by: devreddy1015 <yallappagarid@iitbhilai.ac.in>
* 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>
Fixes #4836
timedatectl list-timezonesincludes 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.tabinstead, which has one current name per region (the per-country list from tzdata). Dropping every link fromtzdata.zidoesn't work becauseEurope/Amsterdam,Europe/OsloandUTCare links too.UTCis added explicitly since it's the menu default.On tzdata 2026f the list goes from 598 to 419 entries.
Etc/GMT±Nand legacy names likeUS/Easternare 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.