fix for wrong weekday in calendar
authorPhiTux <redacted>
Wed, 22 Oct 2025 13:36:46 +0000 (15:36 +0200)
committerPhiTux <redacted>
Wed, 22 Oct 2025 13:36:46 +0000 (15:36 +0200)
frontend/src/lib/Datepicker.svelte

index d7ea328c957517feebc11f50b20c123238299b51..9403948666a89c371cecba33a08cb45620100a97 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT