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
This commit is contained in:
Yoshito Umaoka 2014-03-26 14:28:37 +00:00
parent d1945b489b
commit c5f65ad529

View file

@ -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) {