Calendar: Fix months starting with Sunday (again) (#1794)
This commit is contained in:
parent
c9cc588704
commit
e5b6faff68
@ -337,7 +337,7 @@ function buildCalendarGrid(year: number, month: number) {
|
|||||||
date.setDate(1);
|
date.setDate(1);
|
||||||
date.setMonth(month);
|
date.setMonth(month);
|
||||||
date.setFullYear(year);
|
date.setFullYear(year);
|
||||||
const firstDay = date.getDay();
|
const firstDay = date.getDay() || 7;
|
||||||
const totalDaysInPrevMonth = new Date(year, month, 0).getDate();
|
const totalDaysInPrevMonth = new Date(year, month, 0).getDate();
|
||||||
|
|
||||||
for (let i = 1; i < firstDay; i++) {
|
for (let i = 1; i < firstDay; i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user