From: Yoshito Umaoka Date: Tue, 5 Jun 2012 20:38:37 +0000 (+0000) Subject: ICU-9352 Fixed a bug in useDaylightTime(). The test case reproducing the problem... X-Git-Tag: milestone-59-0-1~3791 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91a3c1e322167bc9118c7b34e35005fec6a291f4;p=icu ICU-9352 Fixed a bug in useDaylightTime(). The test case reproducing the problem will be enabled with #9349 soon. X-SVN-Rev: 31908 --- diff --git a/icu4c/source/i18n/olsontz.cpp b/icu4c/source/i18n/olsontz.cpp index 3fe2861d55f..7ef662d33fc 100644 --- a/icu4c/source/i18n/olsontz.cpp +++ b/icu4c/source/i18n/olsontz.cpp @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (c) 2003-2011, International Business Machines +* Copyright (c) 2003-2012, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Author: Alan Liu @@ -571,7 +571,7 @@ UBool OlsonTimeZone::useDaylightTime() const { // Return TRUE if DST is observed at any time during the current // year. for (int16_t i = 0; i < transitionCount(); ++i) { - double transition = transitionTime(i); + double transition = transitionTimeInSeconds(i); if (transition >= limit) { break; }