Forum
Format the blog date in German
Hello guys,
I'm creating a blog in German language and so I need to set the date output instead of 14.July 2016 to 14.Juli 2016.
The problem is that I don't know how to do this exactly.
thanks in advance Daniel
Hi,
You can use local-compatible dates, this is some info:
https://docs.grabaperch.com/docs/templates/attributes/type/date/
https://www.php.net/manual/en/function.strftime.php
So in your example I think you would need
Thanks Mike,
sorry but I do not understand what to do exactly. Where do I have to set the locale?
No problem - you can do it in
config.php
- try adding this line:Test locally before going live though!
does not work, I did set this in config.php
For better understanding this is the code of my blog template;
The output in the frontend is still 14.July 2016
You may need to use
de_DE.UTF-8
.Make sure you save your content after changing the locale to clear its cache.