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
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
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
Thank you,
but it doesn’t work with gantry5-templates. Here I found a solution given by rockettheme support: http://docs.gantry.org/gantry5/advanced/file-overrides
By the way, nice website https://vernon-dure.de/
Webmasterlein
Hey there,
for my plugin Simple Events I did it directly in the template, to make the date format very customisable. I put my own example for a German date configuration in the template comments. You can see the output in action here:
https://handgestenspiele.de/termine.html
Hope this helps!