[solved] cms_date_format - ignored by modules
Posted: Tue Jul 05, 2011 4:44 pm
Hi there
Modules such as Events and News are showing the dates in a non UK way in the backend. The display templates all use the cms_date_format modifier.
I thought that the setting in Site Admin -> Global settings -> General -> Date Format String was there to set the default for this behaviour.
However, whatever I add here makes no difference to the date formats in the back end.
I have also tried My Preferences - > User Preferences -> Date Format String but this makes no difference either.
The setting I have tried is %d/%m/%Y
Am I missing something here or do I really have to use module_custom to amend all the backend display templates with a specific format.
I am using cmsms 1.9.4.2
Many thanks
Nik
[ADDED LATER]
It turns out the code in the module template actually had a specific date format applied. Using module_custom to modify the template solved the issue. The answer below would not have helped. Thanks.
Modules such as Events and News are showing the dates in a non UK way in the backend. The display templates all use the cms_date_format modifier.
I thought that the setting in Site Admin -> Global settings -> General -> Date Format String was there to set the default for this behaviour.
However, whatever I add here makes no difference to the date formats in the back end.
I have also tried My Preferences - > User Preferences -> Date Format String but this makes no difference either.
The setting I have tried is %d/%m/%Y
Am I missing something here or do I really have to use module_custom to amend all the backend display templates with a specific format.
I am using cmsms 1.9.4.2
Many thanks
Nik
[ADDED LATER]
It turns out the code in the module template actually had a specific date format applied. Using module_custom to modify the template solved the issue. The answer below would not have helped. Thanks.