Skip to content

Add test for date/time separating literal for { dateStyle: "medium" } #3776

Description

@frontsideair

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions