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 · 1364 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 Hanns Mattes, 6 days ago
0 93 6 days ago
General · by Dima, 2 weeks ago
1 121 2 weeks ago
General · by pamtbaau, 2 weeks ago
0 194 2 weeks ago
General · by lynbor, 2 months ago
5 701 4 weeks ago
General · by Andy Miller, 1 month ago
0 427 1 month ago