Kalender: 4-Wochen-Block blättert wochenweise (je 7 Tage)
This commit is contained in:
parent
660cab1001
commit
b067d112c3
1 changed files with 3 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue