You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the handling of century years seems to be not quite correct- they should only be leap years if they are divisible by 400, so 1900 and 2100 are not leap years, while 2000 is. I believe this could be fixed with a change like this to daysInMonth:
Hi there,
the handling of century years seems to be not quite correct- they should only be leap years if they are divisible by 400, so 1900 and 2100 are not leap years, while 2000 is. I believe this could be fixed with a change like this to
daysInMonth
:return (month === 2 && year % 4 === 0 && (year % 100 === 0 ? year % 400 === 0 : true)) ? 29 : days[month - 1];
The text was updated successfully, but these errors were encountered: