Skip to content

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

Open
@anba

Description

@anba

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日木曜日

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