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

zh_CN DateFormat displayed incorrectly when PM time is displayed

XMLWordPrintable

    • mantis
    • generic
    • generic
    • Verified

      The output and golden are different in zh_CN.

      #5: \u4e0b\u534804\u65f600\u520600\u79d2 PST <-- expected output
                      --
      vs: \u4e0b\u534816\u65f600\u520600\u79d2 PST <-- system output
                      --

      when \u4e0b\u5348 (PM) is used, it should use 4 hours instead of 16 hours

      This can be demostrated with GlobalSuite test case:
      GlobalSuite/test/core/DateFormat/GetTimeInstanceTest.java

      Please see the attached golden files, refer to 6th line for the correct display.

      ###@###.### 2002-10-11

            mfang Michael Fang (Inactive)
            mtiensunw Minchi Tien (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: