-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
TimeZoneName is not supported by Safari < 15.4 #14911
Comments
Hi, I'm not a core committer, I'm just one reporter like you. On this matter, take a look at this table. Safari originally supported the DateTimeFormat() constructor and options, and the new option values have been supported since. The release notes for Safari 15.4 beta at https://developer.apple.com/documentation/safari-release-notes/safari-15_4-release-notes says "Supported the TimeZoneName option in Intl.DateTimeFormat.", it means that the new option is supported. |
My understanding is that https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#browser_compatibility and https://caniuse.com/mdn-javascript_builtins_intl_datetimeformat_datetimeformat_options_parameter_options_timezonename_parameter use the same data sources and show the same data. But the output is different for Safari/timeZoneName. |
If you were to modify something about this case, what would you think should be modified? The reason I say this is this, I try to create a Pull Request from an Issue whenever possible, because it seems to be difficult to get a fix if you just create an Issue. If you have a suggestion that needs to be fixed, it might be easier for the core committers to respond if you mention it in an Issue. |
https://caniuse.com/mdn-javascript_builtins_intl_datetimeformat_datetimeformat_options_parameter_options_timezonename_parameter takes data from this repository, apparently, and does not show correct data. I cannot describe the problem better. |
Hmm... I see. I was going to help fix this problem by my creating a pull request if I could find out what needs to be fixed. But I'm not sure, so I'll wait for someone more knowledgeable to come along who can tell us what we need to fix about this. |
This has been fixed by #14786! |
https://caniuse.com/mdn-javascript_builtins_intl_datetimeformat_datetimeformat_options_parameter_options_timezonename_parameter says Intl.DateTimeFormat supports the TimeZoneName option for long time.
The release notes for Safari 15.4 beta at https://developer.apple.com/documentation/safari-release-notes/safari-15_4-release-notes state that this option is supported from this version on.
The text was updated successfully, but these errors were encountered: