mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-2436 (same bug as in japanesecal) - use gregorian calendar to calculate february's length, not buddhist..
X-SVN-Rev: 12220
This commit is contained in:
parent
509391d3dd
commit
73a363b58e
1 changed files with 2 additions and 1 deletions
|
@ -90,9 +90,10 @@ BuddhistCalendar::monthLength(int32_t month, int32_t year) const
|
|||
int32_t
|
||||
BuddhistCalendar::monthLength(int32_t month) const
|
||||
{
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
int32_t year = internalGet(UCAL_YEAR);
|
||||
// ignore era
|
||||
return monthLength(month, year);
|
||||
return GregorianCalendar::monthLength(month, getGregorianYear(status));
|
||||
}
|
||||
|
||||
int32_t BuddhistCalendar::internalGetEra() const
|
||||
|
|
Loading…
Add table
Reference in a new issue