From 62054c2a319dfbd423c95ddb1204c87a4cac5964 Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Tue, 18 Feb 2003 21:11:22 +0000 Subject: [PATCH] ICU-2280 fix failures X-SVN-Rev: 11092 --- .../dev/test/calendar/IBMCalendarTest.java | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/icu4j/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java b/icu4j/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java index 19e13eeb77..2e754f23a5 100755 --- a/icu4j/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java @@ -4,8 +4,8 @@ * others. All Rights Reserved. ******************************************************************************* * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java,v $ - * $Date: 2002/12/18 00:44:39 $ - * $Revision: 1.12 $ + * $Date: 2003/02/18 21:11:22 $ + * $Revision: 1.13 $ ******************************************************************************* */ package com.ibm.icu.dev.test.calendar; @@ -138,6 +138,11 @@ public class IBMCalendarTest extends CalendarTest { * { era, year, gregorianYear, month, dayOfMonth, ... } */ void quasiGregorianTest(Calendar cal, int[] data) { + // As of JDK 1.4.1_01, using the Sun JDK GregorianCalendar as + // a reference throws us off by one hour. This is most likely + // due to the JDK 1.4 incorporation of historical time zones. + //java.util.Calendar grego = java.util.Calendar.getInstance(); + Calendar grego = Calendar.getInstance(); for (int i=0; i