Oops, fix leap years detection algorithm on elm_calendar

SVN revision: 51586
This commit is contained in:
Bruno Dilly 2010-08-23 18:50:51 +00:00
parent 1a985e09cd
commit e2df452945
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ _maxdays_get(struct tm *time)
month = time->tm_mon;
year = time->tm_year + 1900;
return _days_in_month[(!(year % 4) && (!(year % 4) || (year % 100)))][month];
return _days_in_month[(!(year % 4) && (!(year % 400) || (year % 100)))]
[month];
}
static inline void