Kalender: Monat in jeder Tagesüberschrift anzeigen
This commit is contained in:
parent
9d34dd9bda
commit
9425b1dcf1
3 changed files with 21 additions and 6 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue