Kalender: Standardansicht auf 4 Kalenderwochen ab aktueller KW umgestellt

This commit is contained in:
torsten 2026-11-25 22:14:39 +01:00
parent b8fe34512d
commit 660cab1001
9 changed files with 38 additions and 25 deletions

View file

@ -92,7 +92,7 @@ function url(string $path = '/'): string
}
/** Cache-Buster: bei Änderungen an app.css/app.js erhöhen. */
const DIC_ASSET_VERSION = '20';
const DIC_ASSET_VERSION = '21';
function asset(string $path): string
{
@ -329,6 +329,9 @@ function week_start(string $iso): string
return $date->modify('-' . ($weekday - 1) . ' days')->format('Y-m-d');
}
/** Anzahl der Kalenderwochen, die die Kalenderansicht standardmäßig zeigt. */
const CALENDAR_WEEKS = 4;
function month_start(string $iso): string
{
return date_obj($iso)->modify('first day of this month')->format('Y-m-d');