From 434a6ddb114d330014dc9e34d5bc5801f7c8d359 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Tue, 11 Sep 2012 16:28:12 +0000 Subject: [PATCH] ICU-9381 Shorten time zone generic location name per cldrbug:4897. Regenerated CLDR trunk data and imported them from ICU4C including fixes necessary for this. X-SVN-Rev: 32369 --- .../ibm/icu/impl/TimeZoneGenericNames.java | 14 ++- icu4j/main/shared/data/icudata.jar | 4 +- icu4j/main/shared/data/icutzdata.jar | 4 +- .../icu/dev/test/format/DateFormatTest.java | 98 +++++++++---------- .../test/format/DateIntervalFormatTest.java | 26 ++--- .../dev/test/format/TimeZoneFormatTest.java | 6 +- .../icu/dev/test/timezone/TimeZoneTest.java | 6 +- 7 files changed, 82 insertions(+), 76 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneGenericNames.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneGenericNames.java index 8937435c9e0..ddd0945baee 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneGenericNames.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneGenericNames.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 2011, International Business Machines Corporation and * + * Copyright (C) 2011-2012, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -76,11 +76,12 @@ public class TimeZoneGenericNames implements Serializable, Freezable 5) { startYear = 1900; } else { - startYear = 1990; +// startYear = 1990; + startYear = 1900; } Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); @@ -258,7 +259,8 @@ public class TimeZoneFormatTest extends com.ibm.icu.dev.test.TestFmwk { }; } else { LOCALES = new ULocale[] { - new ULocale("en"), +// new ULocale("en"), + new ULocale("el"), }; } diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/TimeZoneTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/TimeZoneTest.java index 77e0d477cd9..e99d8331863 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/TimeZoneTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/TimeZoneTest.java @@ -362,8 +362,8 @@ public class TimeZoneTest extends TestFmwk // V and VVVV Boolean.FALSE, new Integer(TimeZone.SHORT_COMMONLY_USED), "PST", Boolean.TRUE, new Integer(TimeZone.SHORT_COMMONLY_USED), "PDT", - Boolean.FALSE, new Integer(TimeZone.GENERIC_LOCATION), "United States Time (Los Angeles)", - Boolean.TRUE, new Integer(TimeZone.GENERIC_LOCATION), "United States Time (Los Angeles)", + Boolean.FALSE, new Integer(TimeZone.GENERIC_LOCATION), "Los Angeles Time", + Boolean.TRUE, new Integer(TimeZone.GENERIC_LOCATION), "Los Angeles Time", }; for (int i=0; i