Skip to content

Commit

Permalink
Fix Hebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang committed Jul 26, 2023
1 parent 319cf65 commit adc8b52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions icu4c/source/i18n/calendar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,6 @@ void Calendar::roll(UCalendarDateFields field, int32_t amount, UErrorCode& statu
}
set(field, newYear);
pinField(UCAL_MONTH,status);
pinField(UCAL_ORDINAL_MONTH,status);
pinField(UCAL_DAY_OF_MONTH,status);
return;
}
Expand All @@ -1836,7 +1835,6 @@ void Calendar::roll(UCalendarDateFields field, int32_t amount, UErrorCode& statu
// Rolling the year can involve pinning the DAY_OF_MONTH.
set(field, internalGet(field) + amount);
pinField(UCAL_MONTH,status);
pinField(UCAL_ORDINAL_MONTH,status);
pinField(UCAL_DAY_OF_MONTH,status);
return;

Expand Down
2 changes: 0 additions & 2 deletions icu4j/main/classes/core/src/com/ibm/icu/util/Calendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -3100,15 +3100,13 @@ public void roll(int field, int amount) {
}
set(field, newYear);
pinField(MONTH);
pinField(ORDINAL_MONTH);
pinField(DAY_OF_MONTH);
return;
}
case EXTENDED_YEAR:
// Rolling the year can involve pinning the DAY_OF_MONTH.
set(field, internalGet(field) + amount);
pinField(MONTH);
pinField(ORDINAL_MONTH);
pinField(DAY_OF_MONTH);
return;

Expand Down

0 comments on commit adc8b52

Please sign in to comment.