Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: List Available Timezones #232

Open
impleri opened this issue Apr 6, 2023 · 2 comments
Open

Feature: List Available Timezones #232

impleri opened this issue Apr 6, 2023 · 2 comments

Comments

@impleri
Copy link

impleri commented Apr 6, 2023

I'm filing this as a new issue since #122 is pretty old. Intl API does allow listing timezones via Intl.supportedValuesOf('timeZone'), so I could see a method grabbing that data, decorating the values, and returning an nicer list (perhaps using getTimezoneOffset and creating an object of { name, offset, offsetInHours, region } and maybe pre-sorted by offset or name.

@marnusw
Copy link
Owner

marnusw commented Apr 11, 2023

Interesting, and certainly a good idea. I'm rather busy at the moment, so a PR will get this out sooner than leaving it to me, but I do support this functionality and will leave this open to add in due course. Thanks @impleri.

@marnusw
Copy link
Owner

marnusw commented Apr 6, 2024

It seems like this is possible now using Intl.supportedValuesOf('timeZone')

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

No branches or pull requests

2 participants