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

[java.locale.providers=CLDR] Daylight saving Japanese translated TimeZone name for Pacific/Norfolk is not valid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 11.0.6, 13.0.2, 14, 15
    • core-libs
    • None

      By tzdata-2019c, Pacific/Norfolk supported daylight saving time.
      When I set java.locale.providers system property to CLDR on Japanese on Pacific/Norfolk timezone,
      TimeZone name was not changed even if the date was in daylight saving.

      Test result is as follows:

      Japanese translation was on default setting.
      (7th character was changed from \u590f to \u5cf6 on 2020.04.22 line)
      $ LANG=ja_JP.UTF-8 TZ=Pacific/Norfolk ~/jdk-15+6/bin/java tztest1.java
      2020.01.22 23:42:19 NFST \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u590f\u6642\u9593
      2020.02.22 23:42:19 NFST \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u590f\u6642\u9593
      2020.03.22 23:42:19 NFST \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u590f\u6642\u9593
      2020.04.22 23:42:19 NFT \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.05.22 23:42:19 NFT \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.06.22 23:42:19 NFT \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.07.22 23:42:19 NFT \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.08.22 23:42:19 NFT \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.09.22 23:42:19 NFT \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.10.22 23:42:19 NFST \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u590f\u6642\u9593
      2020.11.22 23:42:19 NFST \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u590f\u6642\u9593
      2020.12.22 23:42:19 NFST \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u590f\u6642\u9593
      2021.01.22 23:42:19 NFST \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u590f\u6642\u9593

      But I used -Djava.locale.providers=CLDR, Japanese translation was not changed on 2020.04.22 line)
      $ LANG=ja_JP.UTF-8 TZ=Pacific/Norfolk ~/jdk-15+6/bin/java -Djava.locale.providers=CLDR tztest1.java
      2020.01.22 23:44:44 GMT+12:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.02.22 23:44:44 GMT+12:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.03.22 23:44:44 GMT+12:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.04.22 23:44:44 GMT+11:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.05.22 23:44:44 GMT+11:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.06.22 23:44:44 GMT+11:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.07.22 23:44:44 GMT+11:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.08.22 23:44:44 GMT+11:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.09.22 23:44:44 GMT+11:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.10.22 23:44:44 GMT+12:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.11.22 23:44:44 GMT+12:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2020.12.22 23:44:44 GMT+12:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593
      2021.01.22 23:44:44 GMT+12:00 \u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u5cf6\u6642\u9593

      C locale's output was fine:
      $ LANG=C TZ=Pacific/Norfolk ~/jdk-15+6/bin/java -Djava.locale.providers=CLDR tztest1.java
      2020.01.22 23:46:42 NFST Norfolk Summer Time
      2020.02.22 23:46:42 NFST Norfolk Summer Time
      2020.03.22 23:46:42 NFST Norfolk Summer Time
      2020.04.22 23:46:42 NFT Norfolk Island Time
      2020.05.22 23:46:42 NFT Norfolk Island Time
      2020.06.22 23:46:42 NFT Norfolk Island Time
      2020.07.22 23:46:42 NFT Norfolk Island Time
      2020.08.22 23:46:42 NFT Norfolk Island Time
      2020.09.22 23:46:42 NFT Norfolk Island Time
      2020.10.22 23:46:42 NFST Norfolk Summer Time
      2020.11.22 23:46:42 NFST Norfolk Summer Time
      2020.12.22 23:46:42 NFST Norfolk Summer Time
      2021.01.22 23:46:42 NFST Norfolk Summer Time

      According to en.xml [1] on CLDR, daylight saving time data was missing.
      Also, daylight saving time data was missing on ja.xml [2]

      I think fallback feature may not work as expected.
      Please check it.

      [1] https://github.com/unicode-org/cldr/blob/master/common/main/en.xml#L4017-L4021
      [2] https://github.com/unicode-org/cldr/blob/master/common/main/ja.xml#L6833-L6837

            naoto Naoto Sato
            itakiguchi Ichiroh Takiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: