Blame SOURCES/jdk8294357-tzdata2022d.patch

3a00cd
commit 3d93fdc583ed1c03ecf355b64d41c5f5fe4c07ce
3a00cd
Author: Goetz Lindenmaier <goetz@openjdk.org>
3a00cd
Date:   Wed Oct 5 07:13:43 2022 +0000
3a00cd
3a00cd
    8294357: (tz) Update Timezone Data to 2022d
3a00cd
    
3a00cd
    Backport-of: f01573368f905f27d26f1d07d9cfd26dcc736a54
3a00cd
3a00cd
diff --git a/make/data/tzdata/VERSION b/make/data/tzdata/VERSION
3a00cd
index decb8716b22..889d0e6dad7 100644
3a00cd
--- a/make/data/tzdata/VERSION
3a00cd
+++ b/make/data/tzdata/VERSION
3a00cd
@@ -21,4 +21,4 @@
3a00cd
 # or visit www.oracle.com if you need additional information or have any
3a00cd
 # questions.
3a00cd
 #
3a00cd
-tzdata2022c
3a00cd
+tzdata2022d
3a00cd
diff --git a/make/data/tzdata/asia b/make/data/tzdata/asia
3a00cd
index 3a150b0f36b..f9df7432947 100644
3a00cd
--- a/make/data/tzdata/asia
3a00cd
+++ b/make/data/tzdata/asia
3a00cd
@@ -3398,10 +3398,6 @@ Zone	Asia/Karachi	4:28:12 -	LMT	1907
3a00cd
 # The winter time in 2015 started on October 23 at 01:00.
3a00cd
 # https://wafa.ps/ar_page.aspx?id=CgpCdYa670694628582aCgpCdY
3a00cd
 # http://www.palestinecabinet.gov.ps/portal/meeting/details/27583
3a00cd
-#
3a00cd
-# From Paul Eggert (2019-04-10):
3a00cd
-# For now, guess spring-ahead transitions are at 00:00 on the Saturday
3a00cd
-# preceding March's last Sunday (i.e., Sat>=24).
3a00cd
 
3a00cd
 # From P Chan (2021-10-18):
3a00cd
 # http://wafa.ps/Pages/Details/34701
3a00cd
@@ -3418,6 +3414,18 @@ Zone	Asia/Karachi	4:28:12 -	LMT	1907
3a00cd
 # From Heba Hamad (2022-03-10):
3a00cd
 # summer time will begin in Palestine from Sunday 03-27-2022, 00:00 AM.
3a00cd
 
3a00cd
+# From Heba Hamad (2022-08-30):
3a00cd
+# winter time will begin in Palestine from Saturday 10-29, 02:00 AM by
3a00cd
+# 60 minutes backwards.  Also the state of Palestine adopted the summer
3a00cd
+# and winter time for the years: 2023,2024,2025,2026 ...
3a00cd
+# https://mm.icann.org/pipermail/tz/attachments/20220830/9f024566/Time-0001.pdf
3a00cd
+# (2022-08-31): ... the Saturday before the last Sunday in March and October
3a00cd
+# at 2:00 AM ,for the years from 2023 to 2026.
3a00cd
+# (2022-09-05): https://mtit.pna.ps/Site/New/1453
3a00cd
+#
3a00cd
+# From Paul Eggert (2022-08-31):
3a00cd
+# For now, assume that this rule will also be used after 2026.
3a00cd
+
3a00cd
 # Rule	NAME	FROM	TO	-	IN	ON	AT	SAVE	LETTER/S
3a00cd
 Rule EgyptAsia	1957	only	-	May	10	0:00	1:00	S
3a00cd
 Rule EgyptAsia	1957	1958	-	Oct	 1	0:00	0	-
3a00cd
@@ -3448,14 +3456,16 @@ Rule Palestine	2013	only	-	Sep	27	0:00	0	-
3a00cd
 Rule Palestine	2014	only	-	Oct	24	0:00	0	-
3a00cd
 Rule Palestine	2015	only	-	Mar	28	0:00	1:00	S
3a00cd
 Rule Palestine	2015	only	-	Oct	23	1:00	0	-
3a00cd
-Rule Palestine	2016	2018	-	Mar	Sat>=24	1:00	1:00	S
3a00cd
-Rule Palestine	2016	2018	-	Oct	Sat>=24	1:00	0	-
3a00cd
+Rule Palestine	2016	2018	-	Mar	Sat<=30	1:00	1:00	S
3a00cd
+Rule Palestine	2016	2018	-	Oct	Sat<=30	1:00	0	-
3a00cd
 Rule Palestine	2019	only	-	Mar	29	0:00	1:00	S
3a00cd
-Rule Palestine	2019	only	-	Oct	Sat>=24	0:00	0	-
3a00cd
-Rule Palestine	2020	2021	-	Mar	Sat>=24	0:00	1:00	S
3a00cd
+Rule Palestine	2019	only	-	Oct	Sat<=30	0:00	0	-
3a00cd
+Rule Palestine	2020	2021	-	Mar	Sat<=30	0:00	1:00	S
3a00cd
 Rule Palestine	2020	only	-	Oct	24	1:00	0	-
3a00cd
-Rule Palestine	2021	max	-	Oct	Fri>=23	1:00	0	-
3a00cd
-Rule Palestine	2022	max	-	Mar	Sun>=25	0:00	1:00	S
3a00cd
+Rule Palestine	2021	only	-	Oct	29	1:00	0	-
3a00cd
+Rule Palestine	2022	only	-	Mar	27	0:00	1:00	S
3a00cd
+Rule Palestine	2022	max	-	Oct	Sat<=30	2:00	0	-
3a00cd
+Rule Palestine	2023	max	-	Mar	Sat<=30	2:00	1:00	S
3a00cd
 
3a00cd
 # Zone	NAME		STDOFF	RULES	FORMAT	[UNTIL]
3a00cd
 Zone	Asia/Gaza	2:17:52	-	LMT	1900 Oct
3a00cd
diff --git a/make/data/tzdata/backward b/make/data/tzdata/backward
3a00cd
index d4a29e8cf29..7765d99aedf 100644
3a00cd
--- a/make/data/tzdata/backward
3a00cd
+++ b/make/data/tzdata/backward
3a00cd
@@ -113,6 +113,8 @@ Link	Etc/UTC			Etc/UCT
3a00cd
 Link	Europe/London		Europe/Belfast
3a00cd
 Link	Europe/Kyiv		Europe/Kiev
3a00cd
 Link	Europe/Chisinau		Europe/Tiraspol
3a00cd
+Link	Europe/Kyiv		Europe/Uzhgorod
3a00cd
+Link	Europe/Kyiv		Europe/Zaporozhye
3a00cd
 Link	Europe/London		GB
3a00cd
 Link	Europe/London		GB-Eire
3a00cd
 Link	Etc/GMT			GMT+0
3a00cd
diff --git a/make/data/tzdata/europe b/make/data/tzdata/europe
3a00cd
index 879b5337536..accc845dbaf 100644
3a00cd
--- a/make/data/tzdata/europe
3a00cd
+++ b/make/data/tzdata/europe
3a00cd
@@ -2638,10 +2638,14 @@ Zone Europe/Simferopol	 2:16:24 -	LMT	1880
3a00cd
 # From Alexander Krivenyshev (2014-03-17):
3a00cd
 # time change at 2:00 (2am) on March 30, 2014
3a00cd
 # https://vz.ru/news/2014/3/17/677464.html
3a00cd
-# From Paul Eggert (2014-03-30):
3a00cd
-# Simferopol and Sevastopol reportedly changed their central town clocks
3a00cd
-# late the previous day, but this appears to have been ceremonial
3a00cd
-# and the discrepancies are small enough to not worry about.
3a00cd
+# From Tim Parenti (2022-07-01), per Paul Eggert (2014-03-30):
3a00cd
+# The clocks at the railway station in Simferopol were put forward from 22:00
3a00cd
+# to 24:00 the previous day in a "symbolic ceremony"; however, per
3a00cd
+# contemporaneous news reports, "ordinary Crimeans [made] the daylight savings
3a00cd
+# time switch at 2am" on Sunday.
3a00cd
+# https://www.business-standard.com/article/pti-stories/crimea-to-set-clocks-to-russia-time-114033000014_1.html
3a00cd
+# https://www.reuters.com/article/us-ukraine-crisis-crimea-time/crimea-switches-to-moscow-time-amid-incorporation-frenzy-idUKBREA2S0LT20140329
3a00cd
+# https://www.bbc.com/news/av/world-europe-26806583
3a00cd
 			 2:00	EU	EE%sT	2014 Mar 30  2:00
3a00cd
 			 4:00	-	MSK	2014 Oct 26  2:00s
3a00cd
 			 3:00	-	MSK
3a00cd
@@ -3774,8 +3778,8 @@ Link	Europe/Istanbul	Asia/Istanbul	# Istanbul is in both continents.
3a00cd
 # US colleague David Cochrane) are still trying to get more
3a00cd
 # information upon these local deviations from Kiev rules.
3a00cd
 #
3a00cd
-# From Paul Eggert (2022-02-08):
3a00cd
-# For now, assume that Ukraine's other three zones followed the same rules,
3a00cd
+# From Paul Eggert (2022-08-27):
3a00cd
+# For now, assume that Ukraine's zones all followed the same rules,
3a00cd
 # except that Crimea switched to Moscow time in 1994 as described elsewhere.
3a00cd
 
3a00cd
 # From Igor Karpov, who works for the Ukrainian Ministry of Justice,
3a00cd
@@ -3845,21 +3849,7 @@ Link	Europe/Istanbul	Asia/Istanbul	# Istanbul is in both continents.
3a00cd
 # * Ukrainian Government's Resolution of 20.03.1992, No. 139.
3a00cd
 # http://www.uazakon.com/documents/date_8u/pg_grcasa.htm
3a00cd
 
3a00cd
-# From Paul Eggert (2022-04-12):
3a00cd
-# As is usual in tzdb, Ukrainian zones use the most common English spellings.
3a00cd
-# In particular, tzdb's name Europe/Kyiv uses the most common spelling in
3a00cd
-# English for Ukraine's capital.  Although tzdb's former name was Europe/Kiev,
3a00cd
-# "Kyiv" is now more common due to widespread reporting of the current conflict.
3a00cd
-# Conversely, tzdb continues to use the names Europe/Uzhgorod and
3a00cd
-# Europe/Zaporozhye; this is similar to tzdb's use of Europe/Prague, which is
3a00cd
-# certainly wrong as a transliteration of the Czech "Praha".
3a00cd
-# English-language spelling of Ukrainian names is in flux, and
3a00cd
-# some day "Uzhhorod" or "Zaporizhzhia" may become substantially more
3a00cd
-# common in English; in the meantime, do not change these
3a00cd
-# English spellings as that means less disruption for our users.
3a00cd
-
3a00cd
 # Zone	NAME		STDOFF	RULES	FORMAT	[UNTIL]
3a00cd
-# This represents most of Ukraine.  See above for the spelling of "Kyiv".
3a00cd
 Zone Europe/Kyiv	2:02:04 -	LMT	1880
3a00cd
 			2:02:04	-	KMT	1924 May  2 # Kyiv Mean Time
3a00cd
 			2:00	-	EET	1930 Jun 21
3a00cd
@@ -3869,34 +3859,6 @@ Zone Europe/Kyiv	2:02:04 -	LMT	1880
3a00cd
 			2:00	1:00	EEST	1991 Sep 29  3:00
3a00cd
 			2:00	C-Eur	EE%sT	1996 May 13
3a00cd
 			2:00	EU	EE%sT
3a00cd
-# Transcarpathia used CET 1990/1991.
3a00cd
-# "Uzhhorod" is the transliteration of the Rusyn/Ukrainian pronunciation, but
3a00cd
-# "Uzhgorod" is more common in English.
3a00cd
-Zone Europe/Uzhgorod	1:29:12 -	LMT	1890 Oct
3a00cd
-			1:00	-	CET	1940
3a00cd
-			1:00	C-Eur	CE%sT	1944 Oct
3a00cd
-			1:00	1:00	CEST	1944 Oct 26
3a00cd
-			1:00	-	CET	1945 Jun 29
3a00cd
-			3:00	Russia	MSK/MSD	1990
3a00cd
-			3:00	-	MSK	1990 Jul  1  2:00
3a00cd
-			1:00	-	CET	1991 Mar 31  3:00
3a00cd
-			2:00	-	EET	1992 Mar 20
3a00cd
-			2:00	C-Eur	EE%sT	1996 May 13
3a00cd
-			2:00	EU	EE%sT
3a00cd
-# Zaporozh'ye and eastern Lugansk oblasts observed DST 1990/1991.
3a00cd
-# "Zaporizhzhia" is the transliteration of the Ukrainian name, but
3a00cd
-# "Zaporozh'ye" is more common in English.  Use the common English
3a00cd
-# spelling, except omit the apostrophe as it is not allowed in
3a00cd
-# portable Posix file names.
3a00cd
-Zone Europe/Zaporozhye	2:20:40 -	LMT	1880
3a00cd
-			2:20	-	+0220	1924 May  2
3a00cd
-			2:00	-	EET	1930 Jun 21
3a00cd
-			3:00	-	MSK	1941 Aug 25
3a00cd
-			1:00	C-Eur	CE%sT	1943 Oct 25
3a00cd
-			3:00	Russia	MSK/MSD	1991 Mar 31  2:00
3a00cd
-			2:00	E-Eur	EE%sT	1992 Mar 20
3a00cd
-			2:00	C-Eur	EE%sT	1996 May 13
3a00cd
-			2:00	EU	EE%sT
3a00cd
 
3a00cd
 # Vatican City
3a00cd
 # See Europe/Rome.
3a00cd
diff --git a/make/data/tzdata/southamerica b/make/data/tzdata/southamerica
3a00cd
index 13ec081c7e0..3c0e0e2061c 100644
3a00cd
--- a/make/data/tzdata/southamerica
3a00cd
+++ b/make/data/tzdata/southamerica
3a00cd
@@ -1332,8 +1332,14 @@ Zone America/Rio_Branco	-4:31:12 -	LMT	1914
3a00cd
 # for America/Santiago will start on midnight of September 11th;
3a00cd
 # and will end on April 1st, 2023. Magallanes region (America/Punta_Arenas)
3a00cd
 # will keep UTC -3 "indefinitely"...  This is because on September 4th
3a00cd
-# we will have a voting whether to approve a new Constitution....
3a00cd
-# https://www.interior.gob.cl/noticias/2022/08/09/comunicado-el-proximo-sabado-10-de-septiembre-los-relojes-se-deben-adelantar-una-hora/
3a00cd
+# we will have a voting whether to approve a new Constitution.
3a00cd
+#
3a00cd
+# From Eduardo Romero Urra (2022-08-17):
3a00cd
+# https://www.diariooficial.interior.gob.cl/publicaciones/2022/08/13/43327/01/2172567.pdf
3a00cd
+#
3a00cd
+# From Paul Eggert (2022-08-17):
3a00cd
+# Although the presidential decree stops at fall 2026, assume that
3a00cd
+# similar DST rules will continue thereafter.
3a00cd
 
3a00cd
 # Rule	NAME	FROM	TO	-	IN	ON	AT	SAVE	LETTER/S
3a00cd
 Rule	Chile	1927	1931	-	Sep	 1	0:00	1:00	-
3a00cd
diff --git a/make/data/tzdata/zone.tab b/make/data/tzdata/zone.tab
3a00cd
index 51b65fa273c..ee025196e50 100644
3a00cd
--- a/make/data/tzdata/zone.tab
3a00cd
+++ b/make/data/tzdata/zone.tab
3a00cd
@@ -424,8 +424,6 @@ TV	-0831+17913	Pacific/Funafuti
3a00cd
 TW	+2503+12130	Asia/Taipei
3a00cd
 TZ	-0648+03917	Africa/Dar_es_Salaam
3a00cd
 UA	+5026+03031	Europe/Kyiv	Ukraine (most areas)
3a00cd
-UA	+4837+02218	Europe/Uzhgorod	Transcarpathia
3a00cd
-UA	+4750+03510	Europe/Zaporozhye	Zaporozhye and east Lugansk
3a00cd
 UG	+0019+03225	Africa/Kampala
3a00cd
 UM	+2813-17722	Pacific/Midway	Midway Islands
3a00cd
 UM	+1917+16637	Pacific/Wake	Wake Island
3a00cd
diff --git a/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java b/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
3a00cd
index 15c2f0d1275..6f6e190efcd 100644
3a00cd
--- a/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
3a00cd
+++ b/src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
3a00cd
@@ -574,12 +574,8 @@ public final class ZoneInfoFile {
3a00cd
                     // we can then pass in the dom = -1, dow > 0 into ZoneInfo
3a00cd
                     //
3a00cd
                     // hacking, assume the >=24 is the result of ZRB optimization for
3a00cd
-                    // "last", it works for now. From tzdata2020d this hacking
3a00cd
-                    // will not work for Asia/Gaza and Asia/Hebron which follow
3a00cd
-                    // Palestine DST rules.
3a00cd
-                    if (dom < 0 || dom >= 24 &&
3a00cd
-                                   !(zoneId.equals("Asia/Gaza") ||
3a00cd
-                                     zoneId.equals("Asia/Hebron"))) {
3a00cd
+                    // "last", it works for now.
3a00cd
+                    if (dom < 0 || dom >= 24) {
3a00cd
                         params[1] = -1;
3a00cd
                         params[2] = toCalendarDOW[dow];
3a00cd
                     } else {
3a00cd
@@ -601,7 +597,6 @@ public final class ZoneInfoFile {
3a00cd
                     params[7] = 0;
3a00cd
                 } else {
3a00cd
                     // hacking: see comment above
3a00cd
-                    // No need of hacking for Asia/Gaza and Asia/Hebron from tz2021e
3a00cd
                     if (dom < 0 || dom >= 24) {
3a00cd
                         params[6] = -1;
3a00cd
                         params[7] = toCalendarDOW[dow];
3a00cd
diff --git a/test/jdk/java/util/TimeZone/TimeZoneData/VERSION b/test/jdk/java/util/TimeZone/TimeZoneData/VERSION
3a00cd
index c32bee39fba..71470168456 100644
3a00cd
--- a/test/jdk/java/util/TimeZone/TimeZoneData/VERSION
3a00cd
+++ b/test/jdk/java/util/TimeZone/TimeZoneData/VERSION
3a00cd
@@ -1 +1 @@
3a00cd
-tzdata2022c
3a00cd
+tzdata2022d
3a00cd
diff --git a/test/jdk/java/util/TimeZone/TimeZoneData/aliases.txt b/test/jdk/java/util/TimeZone/TimeZoneData/aliases.txt
3a00cd
index a5e6428a3f5..e3ce742f887 100644
3a00cd
--- a/test/jdk/java/util/TimeZone/TimeZoneData/aliases.txt
3a00cd
+++ b/test/jdk/java/util/TimeZone/TimeZoneData/aliases.txt
3a00cd
@@ -183,6 +183,8 @@ Link	Etc/UTC			Etc/UCT
3a00cd
 Link	Europe/London		Europe/Belfast
3a00cd
 Link	Europe/Kyiv		Europe/Kiev
3a00cd
 Link	Europe/Chisinau		Europe/Tiraspol
3a00cd
+Link	Europe/Kyiv		Europe/Uzhgorod
3a00cd
+Link	Europe/Kyiv		Europe/Zaporozhye
3a00cd
 Link	Europe/London		GB
3a00cd
 Link	Europe/London		GB-Eire
3a00cd
 Link	Etc/GMT			GMT+0
3a00cd
diff --git a/test/jdk/java/util/TimeZone/TimeZoneData/displaynames.txt b/test/jdk/java/util/TimeZone/TimeZoneData/displaynames.txt
3a00cd
index fc148537f1f..b3823958ae4 100644
3a00cd
--- a/test/jdk/java/util/TimeZone/TimeZoneData/displaynames.txt
3a00cd
+++ b/test/jdk/java/util/TimeZone/TimeZoneData/displaynames.txt
3a00cd
@@ -163,11 +163,9 @@ Europe/Simferopol MSK
3a00cd
 Europe/Sofia EET EEST
3a00cd
 Europe/Tallinn EET EEST
3a00cd
 Europe/Tirane CET CEST
3a00cd
-Europe/Uzhgorod EET EEST
3a00cd
 Europe/Vienna CET CEST
3a00cd
 Europe/Vilnius EET EEST
3a00cd
 Europe/Warsaw CET CEST
3a00cd
-Europe/Zaporozhye EET EEST
3a00cd
 Europe/Zurich CET CEST
3a00cd
 HST HST
3a00cd
 MET MET MEST
3a00cd
diff --git a/test/jdk/sun/util/calendar/zi/TestZoneInfo310.java b/test/jdk/sun/util/calendar/zi/TestZoneInfo310.java
3a00cd
index 7b50c342a0d..a7d14f1aa21 100644
3a00cd
--- a/test/jdk/sun/util/calendar/zi/TestZoneInfo310.java
3a00cd
+++ b/test/jdk/sun/util/calendar/zi/TestZoneInfo310.java
3a00cd
@@ -176,11 +176,12 @@ public class TestZoneInfo310 {
3a00cd
              * save time in IANA tzdata. This bug is tracked via JDK-8223388.
3a00cd
              *
3a00cd
              * These are the zones/rules that employ negative DST in vanguard
3a00cd
-             * format (as of 2019a):
3a00cd
+             * format (as of 2019a), Palestine added in 2022d:
3a00cd
              *
3a00cd
              *  - Rule "Eire"
3a00cd
              *  - Rule "Morocco"
3a00cd
              *  - Rule "Namibia"
3a00cd
+             *  - Rule "Palestine"
3a00cd
              *  - Zone "Europe/Prague"
3a00cd
              *
3a00cd
              * Tehran/Iran rule has rules beyond 2037, in which javazic assumes
3a00cd
@@ -196,6 +197,8 @@ public class TestZoneInfo310 {
3a00cd
                 zid.equals("Europe/Dublin") || // uses "Eire" rule
3a00cd
                 zid.equals("Europe/Prague") ||
3a00cd
                 zid.equals("Asia/Tehran") || // last rule mismatch
3a00cd
+                zid.equals("Asia/Gaza") || // uses "Palestine" rule
3a00cd
+                zid.equals("Asia/Hebron") || // uses "Palestine" rule
3a00cd
                 zid.equals("Iran")) { // last rule mismatch
3a00cd
                     continue;
3a00cd
             }