ICU-4547 Cleaned up Hebrew calendar mods based on Yoshito's code review

X-SVN-Rev: 26561
This commit is contained in:
John Emmons 2009-08-27 17:53:57 +00:00
parent 5a22aee70f
commit 7b8f450d29

View File

@ -873,7 +873,7 @@ public class SimpleDateFormat extends DateFormat {
if (isLeap && value == 6 && count >= 3 ) {
value = 13; // Show alternate form for Adar II in leap years in Hebrew calendar.
}
if (HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR)) && value >= 6 && count < 3 ) {
if (!isLeap && value >= 6 && count < 3 ) {
value--; // Adjust the month number down 1 in Hebrew non-leap years, i.e. Adar is 6, not 7.
}
}