diff --git a/dist/index.js b/dist/index.js index 272d417c..da245981 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1795,7 +1795,7 @@ /* @__PURE__ */ createElement("b", { class: "secondary ellipsis width-100" }, translation.weekdays[i]) ); } - const monthOffset = currentDate.getDay() - 1; + const monthOffset = currentDate.getDay(); for (let i = 0; i < monthOffset; i++) { monthGridCells.value.push(/* @__PURE__ */ createElement("div", null)); } diff --git a/src/Views/Objects/calendarView.tsx b/src/Views/Objects/calendarView.tsx index 611cc43b..3ac0b627 100644 --- a/src/Views/Objects/calendarView.tsx +++ b/src/Views/Objects/calendarView.tsx @@ -70,7 +70,7 @@ export function CalendarView( } // create blank dates starting sunday - const monthOffset = currentDate.getDay() - 1; + const monthOffset = currentDate.getDay(); for (let i = 0; i < monthOffset; i++) { monthGridCells.value.push(
); }