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

Question: What does Intl.DateTimeFormat() - "accepts IANA timezone names" actually mean? #1702

Open
tmtron opened this issue Feb 22, 2021 · 0 comments

Comments

@tmtron
Copy link

tmtron commented Feb 22, 2021

When Intl.DateTimeFormat() - accepts IANA timezone names is green, then does this mean:

  1. that the browser has full IANA timezones support? i.e. we can pass any IANA timezone name and get the correct result for that timezone?
  2. or does it only mean, that we can pass valid IANA timezone names, but the browser implementation may fall-back to UTC?

It would be great if this could be clarified in the table somehow: i.e. maybe as an info tooltip.

Here's a related quote from the MDN docs:

timeZone
The time zone to use. The only value implementations must recognize is "UTC"; the default is the runtime's default time zone. Implementations may also recognize the time zone names of the IANA time zone database, ...

and a related SO question: How to ensure/load locales on the client?

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

1 participant