Skip to content

lichen: Filter timezone options based on locale#99

Open
otherJL0 wants to merge 12 commits intoAerynOS:mainfrom
otherJL0:locale-timezone
Open

lichen: Filter timezone options based on locale#99
otherJL0 wants to merge 12 commits intoAerynOS:mainfrom
otherJL0:locale-timezone

Conversation

@otherJL0
Copy link
Copy Markdown

@otherJL0 otherJL0 commented Mar 6, 2026

During the installation process, all timezones from the chrono-tz package are presented for the user to select from.

This changes the default behavior by limiting the presented timezones based on the already selected locale information. The locale information is used to find relevant timezones in the /usr/share/zoneinfo/zone1970.tab table. This also allows the removal of chrono-tz as a dependency.

This also provides a simple escape hatch in case the user wants to select from all timezones independent of their locale.

@otherJL0 otherJL0 marked this pull request as ready for review March 6, 2026 20:30
@jplatte
Copy link
Copy Markdown
Member

jplatte commented Mar 30, 2026

It makes sense to me that more likely timezones would be presented to the user higher-up, but filtering sounds like the user won't be able to pick a different timezone at all - is that the case?

@otherJL0
Copy link
Copy Markdown
Author

It makes sense to me that more likely timezones would be presented to the user higher-up, but filtering sounds like the user won't be able to pick a different timezone at all - is that the case?

I originally added an escape hatch to select from all timezones at the end of the filtered list. I've made an update to show the option to see all timezones a the start of the list which I hope is a better user experience.

lichen_locale_tz_demo

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.

2 participants