From b067d112c3fe4b0ac5f0581f484f3f87c03e796d Mon Sep 17 00:00:00 2001 From: torsten Date: Wed, 25 Nov 2026 22:16:02 +0100 Subject: [PATCH] =?UTF-8?q?Kalender:=204-Wochen-Block=20bl=C3=A4ttert=20wo?= =?UTF-8?q?chenweise=20(je=207=20Tage)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pages.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/pages.php b/app/pages.php index 711e9cb..29abf91 100644 --- a/app/pages.php +++ b/app/pages.php @@ -483,8 +483,9 @@ function page_calendar(array $user): void $prevDate = add_days($date, -1); $nextDate = add_days($date, 1); } elseif ($view === 'weeks') { - $prevDate = add_days($date, -CALENDAR_WEEKS * 7); - $nextDate = add_days($date, CALENDAR_WEEKS * 7); + // Wochenweise blättern: der 4-Wochen-Block wandert um eine Kalenderwoche. + $prevDate = add_days($date, -7); + $nextDate = add_days($date, 7); } else { $prevDate = date_obj(month_start($date))->modify('first day of previous month')->format('Y-m-d'); $nextDate = date_obj(month_start($date))->modify('first day of next month')->format('Y-m-d');