Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8042126

DateTimeFormatter "MMMMM" returns English value in Japanese locale

XMLWordPrintable

    • b34
    • Verified

        DateTimeFormatter.ofPattern("MMMMM") returns English month name in Japanese
        locale.

        "M" represents month-of-year, and "MMMMM" represents the narrow form.
        In Japanese locale, it should return "4" for April, but it returns "A".
        "A" is English abbreviated month name and not used in Japanese locale.

        "LLLLL" (stand-alone month-of-year) returns "4" expectedly.

              okutsu Masayoshi Okutsu
              asaha Abhijit Saha
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: