Page 1 of 1

News Module - Date format

Posted: Fri Jun 16, 2017 10:38 am
by zocha0701
Hi,

how can I change format of date in News Module. That format is given via cms_date_format ?

I would like that months will be numbers not words with only 3 firts letters or that months will be whole word written

Now it is: http://folbluty.org/folblutyCMS/index.p ... ktualnosci

I give in config.php
$config['cms_date_format'] = '%e %m %Y';
$config['date'] = '%e %m %Y';

but it isn't working :-\

Thanks in advance

Re: News Module - Date format

Posted: Fri Jun 16, 2017 11:04 am
by scooper
You can change the default date format throughout the CMS by going to
Site Admin -> Settings - Global Settings and then updating the Date format string field under the General Settings tab.

If you want to just change the date format in News then you can update your template to use the smarty date_format modifier

Code: Select all

{$entry->postdate|date_format:"%e %m %Y"}

Re: News Module - Date format

Posted: Wed Jun 21, 2017 7:11 pm
by zocha0701
Thanks a lot scooper :)
it's working perfectly ;D