ICU-4547 Cleaned up Hebrew calendar mods based on Yoshito's code review
X-SVN-Rev: 26561
This commit is contained in:
parent
5a22aee70f
commit
7b8f450d29
@ -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.
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user