From: PhiTux Date: Wed, 22 Oct 2025 13:36:46 +0000 (+0200) Subject: fix for wrong weekday in calendar X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c7e010e534c3f3d283eb74834d5d65d4ca4701e0;p=DailyTxT.git fix for wrong weekday in calendar --- diff --git a/frontend/src/lib/Datepicker.svelte b/frontend/src/lib/Datepicker.svelte index d7ea328..9403948 100644 --- a/frontend/src/lib/Datepicker.svelte +++ b/frontend/src/lib/Datepicker.svelte @@ -39,8 +39,8 @@ const updateCalendar = () => { const month = $cal.currentMonth; const year = $cal.currentYear; - const firstDay = new Date(Date.UTC(year, month, 1)); - const lastDay = new Date(Date.UTC(year, month + 1, 0)); + const firstDay = new Date(year, month, 1); + const lastDay = new Date(year, month + 1, 0); let tempDays = []; // monday is first day