Oops, fix leap years detection algorithm on elm_calendar
SVN revision: 51586
This commit is contained in:
parent
1a985e09cd
commit
e2df452945
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue