8254982: (tz) Upgrade time-zone data to tzdata2020c

Reviewed-by: erikj, naoto
This commit is contained in:
Kiran Sidhartha Ravikumar 2020-10-23 10:13:08 +00:00 committed by Sean Coffey
parent ac1748e786
commit 55a0cad827
4 changed files with 33 additions and 3 deletions

View file

@ -1687,6 +1687,17 @@ public class BasicDateTime extends Basic {
// Get the supported ids for GMT-08:00 (Pacific Standard Time)
String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
// With tzdata2020b, the test fails for the mentioned zones expecting
// "PST" but JDK has Zone name "MST" for JRE locale provider.
// Therefore excluding them as the test is only looking for a GMT-08:00
// time zone ID. See JDK-8254865.
final List<String> list = new ArrayList<String>();
Collections.addAll(list, ids);
list.remove("America/Dawson");
list.remove("America/WhiteHorse");
list.remove("Canada/Yukon");
ids = list.toArray(new String[list.size()]);
// Create a Pacific Standard Time time zone
SimpleTimeZone tz = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
// public GregorianCalendar(TimeZone zone, Locale aLocale);