function updateDaysOfMonths(year) {
	daysOfMonths[1] = isLeapYear(year) ? 29 : 28;
}
Update the february month on year value change.
If the year is a leap year that means the february month
would be 29 days long, otherwise it's 28.

@param {number} year