< prev index next >
src/java.base/share/classes/sun/util/calendar/ZoneInfoFile.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -583,10 +583,16 @@
// set the month to an exact month value, day-of-month to the
// day on or after which the rule is applied, and day-of-week
// to a negative Calendar.DAY_OF_WEEK DAY_OF_WEEK field value.
params[2] = -toCalendarDOW[dow];
}
+ // Special case for Asia/Gaza and Asia/Hebron following Palestine
+ // rule where the above hacking of "dom >= 24" won't work.
+ if (zoneId.equals("Asia/Gaza") || zoneId.equals("Asia/Hebron")) {
+ params[1] = dom;
+ params[2] = -toCalendarDOW[dow];
+ }
}
params[3] = startRule.secondOfDay * 1000;
params[4] = toSTZTime[startRule.timeDefinition];
params[5] = endRule.month - 1;
dom = endRule.dom;
< prev index next >