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:
Steven R. Loomis 2003-06-02 18:46:41 +00:00
parent 509391d3dd
commit 73a363b58e

View file

@ -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