Skip to content

Wrong Intl.DateTimeFormat output for zh-CN without year part #29596

Closed
@duanyao

Description

@duanyao

Test code:

new Intl.DateTimeFormat('zh-CN', { timeZone: 'Asia/Shanghai', month: "2-digit",
  day: "2-digit" }).format(new Date('2019-09-16 GMT+8'))

nodejs v12.10.0 outputs a strange string '09 ├Day: 16┤'.

On nodejs v10.14.2, the result is '09-16', which is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-apiIssues and PRs related to the i18n implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions