Skip to content

Make NativeDate.toLocaleString() behave more like real browsers#20

Open
duonglaiquang wants to merge 1 commit intoHtmlUnit:masterfrom
duonglaiquang:duong_date
Open

Make NativeDate.toLocaleString() behave more like real browsers#20
duonglaiquang wants to merge 1 commit intoHtmlUnit:masterfrom
duonglaiquang:duong_date

Conversation

@duonglaiquang
Copy link
Copy Markdown

This PR does the following

Make toLocaleString(), toLocaleDateString(), and toLocaleTimeString() output closer to real browser behavior by building DateTimeFormatter dynamically using the resolved locale instead of static pre-built formatters.

Now the outputs are almost identical to real browser with the exception of some minor cases.

@rbri
Copy link
Copy Markdown
Member

rbri commented Mar 17, 2026

No access to my pc today, will work on this tomorrow

@rbri
Copy link
Copy Markdown
Member

rbri commented Mar 18, 2026

Great, forwarded to Rhino, i this will be merged after some review.

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