Skip to content

Drop tzdata aliases from the timezone pickers - #11288

Open
bruno-keiko wants to merge 1 commit into
omacom:quattrofrom
bruno-keiko:fix/timezone-picker-aliases
Open

bruno-keiko wants to merge 1 commit into
omacom:quattrofrom
bruno-keiko:fix/timezone-picker-aliases

Conversation

@bruno-keiko

@bruno-keiko bruno-keiko commented Sep 11, 2026

Copy link
Copy Markdown

Picking a timezone shows near-duplicates: Asia/Ashkhabad right under Asia/Ashgabat, Asia/Calcutta under Asia/Kolkata, and so on.

Both pickers list timedatectl list-timezones. Since systemd v249 that list comes from /usr/share/zoneinfo/tzdata.zi and includes L (Link) records as well as Z (Zone) ones, so all 257 backward-compatibility aliases land next to the real zones — about 600 entries where ~420 are meaningful.

Read /usr/share/zoneinfo/zone.tab instead: one row per country per distinct zone, no obsolete aliases, and unlike zone1970.tab it still lists Europe/Oslo, Europe/Stockholm and the other zones tzdata has since merged into links. UTC is added back explicitly since zone.tab omits it and the setup form falls back to it.

Applied in both places that ask — install/provisioning/setup-form.sh (ISO configurator and first-boot owner setup) and bin/omarchy-menu-timezone.

Tests: setup-form-test.sh asserts the piped list offers Asia/Ashgabat and not Asia/Ashkhabad; timezone-test.sh pins the menu to zone.tab. Both pass. ./test/cli fails the same pre-existing hardware group assertion with and without this change (run on macOS).

@bruno-keiko
bruno-keiko force-pushed the fix/timezone-picker-aliases branch from 8d99664 to b95f3d7 Compare September 11, 2026 09:57
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.

1 participant