more date fixes

This commit is contained in:
2024-08-27 20:16:33 -06:00
parent 27349af5b9
commit 72f391dcf9
4 changed files with 22 additions and 39 deletions

View File

@@ -32,7 +32,7 @@ function createCalendarMonth(year: number, month: number): CalendarMonthModel {
return new Date(year, month - 1, currentDay++);
} else {
currentDay++;
return new Date(year, month, currentDay - daysInMonth);
return new Date(year, month, currentDay - daysInMonth - 1);
}
})
);