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

IE toLocaleString timezone options #4164

Closed
wbt opened this issue May 15, 2019 · 1 comment
Closed

IE toLocaleString timezone options #4164

wbt opened this issue May 15, 2019 · 1 comment
Labels
data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript

Comments

@wbt
Copy link

wbt commented May 15, 2019

This line reports that the options in toLocaleString is implemented as of IE11.

However, when using an IANA time zone database identifier as indicated under Parameters, IE11 throws a RangeError that the option value for 'timeZone' is outside of valid range. Expected: ['UTC'].

It would be helpful to know that IE does not support those time zones as options.

I am not sure if this should be listed as a separate property, like options.timeZone.IANAzones or similar label. I am inclined against making a pull request to change the data directly on options because of the permissive implementation language (The only value implementations must recognize is "UTC"...Implementations may also recognize the time zone names of the IANA time zone database, such as Asia/Shanghai, Asia/Kolkata, America/New_York"). Therefore I don't think it would be fair to say IE is out of standard. However, it would be very helpful to know they haven't fully implemented that aspect of options.

Related: #4162 ("Require notes for partial_implementation").

@ddbeck ddbeck added the data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label May 16, 2019
@queengooborg
Copy link
Contributor

This was fixed in #4513. Closing!

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
Development

No branches or pull requests

3 participants