User Preferences Date Format String with CMSMS 2.2.14

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
cyrcle
Forum Members
Forum Members
Posts: 23
Joined: Fri Jan 06, 2017 3:54 pm

User Preferences Date Format String with CMSMS 2.2.14

Post by cyrcle »

Hello,

Could someone confirm that in "My Account / User Preferences", the value entered in the Date Format String field is no longer interpreted since update to CMSMS 2.2.14?
For example, if I enter %x %X, %x %X is displayed in News Post Date or in File Manager for File Date.
If I enter %d/%m/%Y %T, :o %04/%01/%2020 %CET is displayed :o in News Post Date instead of 04/01/2020 13:15:28.

Thanks.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: User Preferences Date Format String with CMSMS 2.2.14

Post by velden »

Yes, I can confirm.
jce76350
Beta Tester
Beta Tester
Posts: 2033
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: User Preferences Date Format String with CMSMS 2.2.14

Post by jce76350 »

Use in your news template for example
{$entry->postdate|date_format:'%d/%m/%Y %T'}
Jean-Claude Etiemble
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: User Preferences Date Format String with CMSMS 2.2.14

Post by velden »

cyrcle
Forum Members
Forum Members
Posts: 23
Joined: Fri Jan 06, 2017 3:54 pm

Re: User Preferences Date Format String with CMSMS 2.2.14

Post by cyrcle »

Sorry jce76350 if I was not clear, I was talking about the display of dates in the administration pages.

Thank you velden.
Post Reply

Return to “CMSMS Core”