changeset 13819:7a91c5d25ad8

8234288: Turkey Time Zone returns incorrect time zone name Summary: Add and use "Turkey Time" time zone. Reviewed-by: naoto, martin, phh Contributed-by: letuyang@amazon.com
author phh
date Wed, 04 Dec 2019 15:01:22 -0800
parents 4da67e02d376
children ca9cd4f2e74f 9b42098668c8
files src/share/classes/sun/util/resources/TimeZoneNames.java test/sun/text/resources/LocaleData test/sun/text/resources/LocaleDataTest.java
diffstat 3 files changed, 21 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/util/resources/TimeZoneNames.java	Fri Nov 21 13:32:17 2014 -0800
+++ b/src/share/classes/sun/util/resources/TimeZoneNames.java	Wed Dec 04 15:01:22 2019 -0800
@@ -242,6 +242,9 @@
         String TMT[] = new String[] {"Turkmenistan Time", "TMT",
                                      "Turkmenistan Summer Time", "TMST",
                                      "Turkmenistan Time", "TMT"};
+        String TRT[] = new String[] {"Turkey Time", "TRT",
+                                     "Turkey Summer Time", "TRST",
+                                     "Turkey Time", "TRT"};
         String ULAT[]= new String[] {"Ulaanbaatar Time", "ULAT",
                                      "Ulaanbaatar Summer Time", "ULAST",
                                      "Ulaanbaatar Time", "ULAT"};
@@ -639,7 +642,7 @@
                                         "Hovd Summer Time", "HOVST",
                                         "Hovd Time", "HOVT"}},
             {"Asia/Irkutsk", IRKT},
-            {"Asia/Istanbul", EET},
+            {"Asia/Istanbul", TRT},
             {"Asia/Jakarta", WIT},
             {"Asia/Jayapura", new String[] {"East Indonesia Time", "WIT",
                                             "East Indonesia Summer Time", "EIST",
@@ -819,7 +822,7 @@
             {"Europe/Guernsey", GMTBST},
             {"Europe/Helsinki", EET},
             {"Europe/Isle_of_Man", GMTBST},
-            {"Europe/Istanbul", EET},
+            {"Europe/Istanbul", TRT},
             {"Europe/Jersey", GMTBST},
             {"Europe/Kaliningrad", EET},
             {"Europe/Kiev", EET},
@@ -1021,7 +1024,7 @@
             {"SystemV/PST8PDT", PST},
             {"SystemV/YST9", AKST},
             {"SystemV/YST9YDT", AKST},
-            {"Turkey", EET},
+            {"Turkey", TRT},
             {"UCT", UTC},
             {"Universal", UTC},
             {"US/Alaska", AKST},
--- a/test/sun/text/resources/LocaleData	Fri Nov 21 13:32:17 2014 -0800
+++ b/test/sun/text/resources/LocaleData	Wed Dec 04 15:01:22 2019 -0800
@@ -8310,3 +8310,17 @@
 # For Peru decimal separator is changed to dot(.) and grouping separator is changed to comma(,)
 FormatData/es_PE/NumberElements/0=.
 FormatData/es_PE/NumberElements/1=,
+
+# bug 8234288
+TimeZoneNames/en/Asia\/Istanbul/1=Turkey Time
+TimeZoneNames/en/Asia\/Istanbul/2=TRT
+TimeZoneNames/en/Asia\/Istanbul/3=Turkey Summer Time
+TimeZoneNames/en/Asia\/Istanbul/4=TRST
+TimeZoneNames/en/Europe\/Istanbul/1=Turkey Time
+TimeZoneNames/en/Europe\/Istanbul/2=TRT
+TimeZoneNames/en/Europe\/Istanbul/3=Turkey Summer Time
+TimeZoneNames/en/Europe\/Istanbul/4=TRST
+TimeZoneNames/en/Turkey/1=Turkey Time
+TimeZoneNames/en/Turkey/2=TRT
+TimeZoneNames/en/Turkey/3=Turkey Summer Time
+TimeZoneNames/en/Turkey/4=TRST
--- a/test/sun/text/resources/LocaleDataTest.java	Fri Nov 21 13:32:17 2014 -0800
+++ b/test/sun/text/resources/LocaleDataTest.java	Wed Dec 04 15:01:22 2019 -0800
@@ -37,7 +37,7 @@
  *      7003124 7085757 7028073 7171028 7189611 8000983 7195759 8004489 8006509
  *      7114053 7074882 7040556 8013836 8021121 6192407 6931564 8027695 7090826
  *      8017142 8037343 8055222 8042126 8074791 8075173 8080774 8129361 8145952
- *      8164784 8187946 8195478 8193552 8202026 8204269 8208746 8209775
+ *      8164784 8187946 8195478 8193552 8202026 8204269 8208746 8209775 8234228
  * @summary Verify locale data
  *
  */