Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Change dateformat in German

Started by Wolfgang 6 years ago · 3 replies · 1404 views
6 years ago

Hi there,
I'm very happy using grav, but I can't find a way to display the right dateformat if the language is another than English. I tried several workarounds I found, but nothing could solve the problem. Is there anyone who can explain?

THX

6 years ago

Hallo, @Webmasterlein!
I set the following in "system.yaml":

dateformat:
default: 'd-m-Y H:i'
short: 'd-m-y G:i'
long: 'D, d M Y G:i:s'
publish_dates: true

Hope it works for you as well (see: https://vernon-dure.de)
Best regards
krdau

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago