X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..7393aa2fd2c40c89f12c2db881842a563afdb429:/icuSources/test/intltest/tzregts.cpp diff --git a/icuSources/test/intltest/tzregts.cpp b/icuSources/test/intltest/tzregts.cpp index 5ce419cf..b549b83c 100644 --- a/icuSources/test/intltest/tzregts.cpp +++ b/icuSources/test/intltest/tzregts.cpp @@ -1,7 +1,6 @@ /******************************************************************** - * COPYRIGHT: - * Copyright (c) 1997-2006, International Business Machines Corporation and - * others. All Rights Reserved. + * Copyright (c) 1997-2007, International Business Machines + * Corporation and others. All Rights Reserved. ********************************************************************/ #include "unicode/utypes.h" @@ -482,8 +481,22 @@ void TimeZoneRegressionTest:: Test4126678() failure(status, "cal->get"); int32_t offset = tz->getOffset((uint8_t)era, year, month, day, (uint8_t)dayOfWeek, millis, status); int32_t raw_offset = tz->getRawOffset(); + /* Because of better historical timezone support based on Olson data, + * DST is not observed in year 98. Thus, the expected result is changed. + * As of Mar 2007, ICU timezone transition data is represented by 32-bit. + * When we support 64-bit Olson transition data, the actual offset in + * AD 98 for America/Los_Angeles will be changed again (-7:52:58). Until + * then, expected result is offset == raw_offset. -Yoshito + */ + /* if (offset == raw_offset) errln("Offsets should not match when in DST"); + */ + /* TODO: When ICU support the Olson LMT offset for America/Los_Angeles, we need to update + * the reference data. + */ + if (offset != raw_offset) + errln("Offsets should match"); delete cal; }