Skip to content

wrong date format in Thai locale #14131

@kekhuai

Description

@kekhuai

I'm submitting a ...

[x] bug report

Current behavior
When i use date pipe with 'th-TH' locale something like this
[value]="today | date: 'dd-MM-yy'"
the result is "27-01-พ.ศ. 60" which is wrong because "พ.ศ." is Buddhist Era (BE) and i don't specify era symbol in date format.

Expected behavior
The correct display result should be "27-01-60".

Please tell us about your environment:

  • Angular version:
    2.3.1

  • Browser:
    all

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: commonIssues related to APIs in the @angular/common packagearea: i18nIssues related to localization and internationalizationtype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions