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

Consider expanding list of available timezones to all those supported by Intl browser API #6305

Open
adidahiya opened this issue Jul 26, 2023 · 3 comments

Comments

@adidahiya
Copy link
Contributor

Environment

  • Package version(s): @blueprintjs/datetime 5.0.7
  • Browser and OS versions: Chrome 114, macOS

Feature request

We should consider expanding the list of timezones available in <TimezoneSelect>. We could enable an option which supports all the timezones available using the Intl browser API. For example, Intl.suppportedValuesOf(“timeZone”) returns 429 entries in my browser. This is more items than the default list of timezones currently used by the component (250 items).

This feature could (in theory) exist in date-fns-tz, it has been requested but not implemented yet: marnusw/date-fns-tz#232

Motivation

This feature is motivated by user requests to see timezones like America/Indiana/Indianapolis in a TimezoneSelect dropdown. We don't want to expose users to a very long list of timezones by default, but it would be nice make it an available option for certain use cases.

@nerdstep
Copy link
Contributor

@adidahiya what about an option to customize the list? We have an use-case where it would be nice to show only a limited list of time zones (narrower than the current defaults) for our app.

@adidahiya
Copy link
Contributor Author

@adidahiya what about an option to customize the list?

@nerdstep that sounds like a reasonable ask, albeit slightly different from what I have described above. Can you please file a separate issue for that feature request?

@nerdstep
Copy link
Contributor

Opened a new issue to discuss allowing the Timezone select list to be customized: #6333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants