Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions