]> granicus.if.org Git - icu/commitdiff
ICU-9352 Fixed a bug in useDaylightTime(). The test case reproducing the problem...
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 5 Jun 2012 20:38:37 +0000 (20:38 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 5 Jun 2012 20:38:37 +0000 (20:38 +0000)
X-SVN-Rev: 31908

icu4c/source/i18n/olsontz.cpp

index 3fe2861d55f626ef65ebbde525fa1265b0349c45..7ef662d33fcbe63a945f18bd4d1edb3c26163dd6 100644 (file)
@@ -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;
         }