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

AdjustDateTimeStyleFormat: Don't adjust format when no conflicting options are present? #3062

Open
anba opened this issue Dec 11, 2024 · 0 comments

Comments

@anba
Copy link
Contributor

anba commented Dec 11, 2024

AdjustDateTimeStyleFormat determines a new format even when no conflicting options are present. This leads to the following results:

js> console.log(new Date(0).toLocaleString("ja", {dateStyle: "full"}))                                                                           
1970年1月1日木曜日
js> console.log(new Temporal.PlainDate(1970, 1, 1).toLocaleString("ja", {dateStyle: "full"})) 
1970/1/1木曜日

The polyfill already appears to use the original format, because it returns:

> console.log(new Temporal.PlainDate(1970, 1, 1).toLocaleString("ja", {dateStyle: "full"}))
1970年1月1日木曜日
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