6932473: (tz) javazic produces incorrect SimpleTimeZone parameters with Sun<=7

Reviewed-by: peytoia
This commit is contained in:
Masayoshi Okutsu 2010-03-10 14:32:47 +09:00
parent 35bf330316
commit 61995b9270

View File

@ -139,7 +139,7 @@ class RuleDay {
if (isLast()) {
return -1;
}
return getDay();
return isEarlier() ? -getDay() : getDay();
}
/**
@ -147,13 +147,10 @@ class RuleDay {
* @return the SimpleTimeZone day-of-week rule value
*/
int getDayOfWeekForSimpleTimeZoneInt() {
if (!isLater() && !isEarlier() && !isLast()) {
return 0;
}
if (isLater()) {
if (isEarlier() || isLater()) {
return -getDayOfWeekNum();
}
return getDayOfWeekNum();
return isLast() ? getDayOfWeekNum() : 0;
}
/**