Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Change dateformat in German

Started by Wolfgang 6 years ago · 3 replies · 1165 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 jeremycherfas, 4 days ago
3 106 8 hours ago
General · by Old Man Umby, 3 days ago
1 63 3 days ago
General · by Sebastian, 5 days ago
1 84 5 days ago
General · by Andy Miller, 2 weeks ago
0 218 2 weeks ago
General · by ready-4-IT, 6 months ago
1 717 3 weeks ago