Kalender: 4-Wochen-Block blättert wochenweise (je 7 Tage)

This commit is contained in:
torsten 2026-11-25 22:16:02 +01:00
parent 660cab1001
commit b067d112c3

View file

@ -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');