I have found an implementation inconsistency between Safari (WebKit) and Chrome (V8) where formatting a date with time in en-US locale, if dateStyle is medium, the literal separating the date and time is different.
For example:
new Intl.DateTimeFormat("en-US", {dateStyle: "medium", timeStyle: "short"}).format(new Date())
// Google Chrome Version 109.0.5414.119 (Official Build) (arm64)
> Jan 30, 2023, 6:50 PM
// Safari Version 16.1 (18614.2.9.1.12)
> Jan 30, 2023 at 6:50 PM
Here's a playground for easy reproduction.
I wonder which behavior is correct, but the spec is dense and I thought that there should be a test for this case. If you don't think this is the case, please let me know where I should open a bug report.
I have found an implementation inconsistency between Safari (WebKit) and Chrome (V8) where formatting a date with time in
en-USlocale, ifdateStyleismedium, the literal separating the date and time is different.For example:
Here's a playground for easy reproduction.
I wonder which behavior is correct, but the spec is dense and I thought that there should be a test for this case. If you don't think this is the case, please let me know where I should open a bug report.