fix to always show today after login
authorPhiTux <redacted>
Sat, 11 Oct 2025 16:01:56 +0000 (18:01 +0200)
committerPhiTux <redacted>
Sat, 11 Oct 2025 16:01:56 +0000 (18:01 +0200)
frontend/src/routes/(authed)/+layout.svelte

index c4c2e913eab35d053dcbd2a2c17d35f8cb80437c..55de698678ef6398b58a43cce5cdedd0013b5335 100644 (file)
@@ -47,6 +47,7 @@
        import github from '$lib/assets/GitHub-Logo.png';
        import dailytxt from '$lib/assets/locked_heart_with_keyhole.svg';
        import donate from '$lib/assets/bmc-button.png';
+       import { selectedDate } from '$lib/calendarStore';
 
        const { t } = getTranslate();
        const tolgee = getTolgee(['language']);
                        return; // Stop further initialization
                }
 
+               $selectedDate = {
+                       year: new Date().getFullYear(),
+                       month: new Date().getMonth() + 1,
+                       day: new Date().getDate()
+               };
+
                // Normal initialization only if authenticated
                getUserSettings();
                getTemplates();
git clone https://git.99rst.org/PROJECT