[solved] cms_date_format - ignored by modules

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
NikNak
Forum Members
Forum Members
Posts: 183
Joined: Fri Oct 02, 2009 2:28 pm

[solved] cms_date_format - ignored by modules

Post by NikNak »

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.
Last edited by NikNak on Sat Jul 23, 2011 9:38 am, edited 1 time in total.
starbits
Forum Members
Forum Members
Posts: 47
Joined: Tue Oct 09, 2007 9:41 pm

Re: cms_date_format - ignored by modules

Post by starbits »

You may have gone on to other things by now, but I just had to work this problem out myself, so in case anyone else is interested, here it is.

You do not have to modify your code or write your own UDT to replace the {cms_date_format} tag. What you do instead is in Site Admin, Global Settings, on the General tab, go down to "Date Format String", and enter your choice there.

Happy CMS'ing,
Steve
Post Reply

Return to “CMSMS Core”