Skip to content

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

Open
@anba

Description

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

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions