From c5f65ad529c5955e36b5348ae0838dc631f41aeb Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Wed, 26 Mar 2014 14:28:37 +0000 Subject: [PATCH] ICU-10434 Relaxed the check condition for DST amount from 1 hour to 2 hours. tzdata2014b added Antarctica/Troll with a recurrent DST rule with 2 hour daylight saving. X-SVN-Rev: 35531 --- icu4c/source/tools/tzcode/tz2icu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/tools/tzcode/tz2icu.cpp b/icu4c/source/tools/tzcode/tz2icu.cpp index 6af3eb4000f..959556e6460 100644 --- a/icu4c/source/tools/tzcode/tz2icu.cpp +++ b/icu4c/source/tools/tzcode/tz2icu.cpp @@ -1,7 +1,7 @@ /* ********************************************************************** -* Copyright (c) 2003-2013, International Business Machines +* Copyright (c) 2003-2014, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Author: Alan Liu @@ -829,7 +829,7 @@ struct FinalRulePart { if (mode != DOM && (dow < 0 || dow >= 7)) { os << "Invalid input day of week " << dow; } - if (offset < 0 || offset > HOUR) { + if (offset < 0 || offset > (2 * HOUR)) { os << "Invalid input offset " << offset; } if (isgmt && !isstd) { -- 2.40.0