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

javascript.builtins.Intl.DateTimeFormat - "IANA time zone names in options.timeZoneName option" browser compat data for Chrome is incorrect #15396

Closed
alangdm opened this issue Mar 16, 2022 · 0 comments · Fixed by #21470
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript

Comments

@alangdm
Copy link
Contributor

alangdm commented Mar 16, 2022

What information was incorrect, unhelpful, or incomplete?

"IANA time zone names in options.timeZoneName option" browser compat data for Chromium-based browsers

What did you expect to see?

"IANA time zone names in options.timeZoneName option" should appear as supported in Chrome

Did you test this? If so, how?

As far as I've been able to tell this option refers to this proposal

I tried running the following code in Chrome/Edge 99 and the result was "12/20/2020, Japan Standard Time" which matches Safari 15.4 and Firefox 99, which both appear as supported in browser compat

const date = new Date(Date.UTC(2020, 11, 20, 3, 23, 16, 738));
console.log(new Intl.DateTimeFormat('en-US', {timeZoneName: 'longGeneric', timeZone: 'JST'}).format(date));

Testing other options in the proposal also delivered matching results

I wasn't able to find out which Chromium version this was released in but I found the V8 ticket which appears as fixed

MDN page report details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript
Projects
None yet
2 participants