Kalender: Monat in jeder Tagesüberschrift anzeigen

This commit is contained in:
torsten 2026-11-19 17:11:35 +01:00
parent 9d34dd9bda
commit 9425b1dcf1
3 changed files with 21 additions and 6 deletions

View file

@ -366,6 +366,12 @@ function fmt_month(string $iso): string
return $months[(int) date_obj($iso)->format('n')] . ' ' . date_obj($iso)->format('Y');
}
function fmt_month_short(string $iso): string
{
$months = ['', 'Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'];
return $months[(int) date_obj($iso)->format('n')];
}
function fmt_weekday_short(string $iso): string
{
$days = ['', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'];