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

AM/PM markers are not localized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 17
    • core-libs
    • None

      Repro:

      `new DateFormatSymbols(Locale.GERMAN).getAmPmStrings()`

      For Java 11:
      String[2] { "vorm.", "nachm." }

      For Java 17:
      `{ "AM", "PM" }`

      The locale date still includes the strings - https://github.com/openjdk/jdk17/blob/master/src/jdk.localedata/share/classes/sun/text/resources/ext/JavaTimeSupplementary_de.java#L84

      Same for ES

      Is this expected? Tried to figure out from https://www.oracle.com/java/technologies/javase/jdk17-suported-locales.html but was not clear

            naoto Naoto Sato
            klward Klara Ward
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: