Skip to content

DateTimeFormatter doesn't follow locale when using QQQQ pattern #167

@xatok

Description

@xatok

This code using 1.6.1 version of threetenbp:

 org.threeten.bp.LocalDate
        .of(2020, 1, 1)
        .format(org.threeten.bp.format.DateTimeFormatter.ofPattern("QQQQ", Locale.FRANCE))

outputs: 1st quarter

And then the same code using Java 11 implementation it outputs the correct format:

    java.time.LocalDate
        .of(2020, 1, 1)
        .format(java.time.format.DateTimeFormatter.ofPattern("QQQQ", Locale.FRANCE))

outputs: 1er trimestre

The outputs should be also localized with threetenbp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions