]> granicus.if.org Git - icu/commitdiff
ICU-8589 TestTimeZoneDisplayName test date parser to force GMT to be used.
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 26 May 2011 21:04:36 +0000 (21:04 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 26 May 2011 21:04:36 +0000 (21:04 +0000)
X-SVN-Rev: 30150

icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatTest.java

index 156e96dcdde8fb1b66c752d49d0c2cc9cbe523f1..a502d7bacf55f1fe0373acbd778f7abc5b27e2b3 100644 (file)
@@ -643,6 +643,7 @@ public class DateFormatTest extends com.ibm.icu.dev.test.TestFmwk {
     public void TestTimeZoneDisplayName() {
         Calendar cal = new GregorianCalendar();
         SimpleDateFormat testfmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
+        testfmt.setTimeZone(TimeZone.getTimeZone("Etc/GMT"));
 
         for (int i = 0; i < fallbackTests.length; ++i) {
             String[] info = fallbackTests[i];