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

improved date localization #1491

Closed
wants to merge 1 commit into from

Conversation

rbri
Copy link
Collaborator

@rbri rbri commented Jun 15, 2024

  • use DateTimeFormatter instead of SimpleDateFormat
  • Date.prototype.toLocaleString now handles locales argument
  • make the formatter use Context.timezone instead of system default
  • ES6: use FormatStyle.SHORT for the formatter to make it behave more like real browsers when Intl.DateTimeFormat is not supported

@rbri rbri force-pushed the improved_date_localization branch from eea19f2 to 3a4f05b Compare June 15, 2024 10:10
- Date.prototype.toLocaleString now handles locales argument
- make the formatter use Context.timezone instead of system default
- ES6: use FormatStyle.SHORT for the formatter to make it behave more like real browsers when Intl.DateTimeFormat is not supported
@rbri rbri force-pushed the improved_date_localization branch from 3a4f05b to 13ec3f4 Compare June 15, 2024 10:17
rbri added a commit to HtmlUnit/htmlunit-rhino-fork that referenced this pull request Jun 16, 2024
@gbrail
Copy link
Collaborator

gbrail commented Jul 1, 2024

@rbri any idea why the Java 21 test is failing?

FWIW if you rebase then the GitHub action will upload the reports again and we'll see what happened...

@rbri rbri mentioned this pull request Jul 22, 2024
@rbri
Copy link
Collaborator Author

rbri commented Jul 22, 2024

made some git mistakes on my side - #1535 is the new version of this one

@rbri rbri closed this Jul 22, 2024
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

Successfully merging this pull request may close these issues.

2 participants