[solved, but question ensuing] modified_date / strftime issue

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
ntmr
Forum Members
Forum Members
Posts: 16
Joined: Wed Aug 05, 2009 12:27 am

[solved, but question ensuing] modified_date / strftime issue

Post by ntmr »

So, I have a small problem with the modified_date tag. I have it in my footer and am feeding it [url=http://"http://us3.php.net/strftime"]strftime specifications[/url] as follows:

Code: Select all

This page last edited by {last_modified_by format="fullname"} on {modified_date format="%B %e %Y"} at {modified_date format="%I:%M %p"}.
What I get from that code on a page I'm testing with is:

This page last edited by Nathaniel Robertson on August 2009 at 05:26 PM.

As you can see, the day is missing, which should be provided by the %e parameter.
But, as I was writing this thread, I just tested it with %d instead of %e, and it worked. And then I additionally wanted to switch %I to %l, but that didn't work either. It's looking like the CMSms core doesn't support strftime parameters without leading zeros (e.g. 05:23 supported, but 5:23 not supported).

Should a bug or maybe a feature request be filed?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: [solved, but question ensuing] modified_date / strftime issue

Post by calguy1000 »

This is not a CMSMS core issue... cuz we just pass the stuff directly to strftime

it's a php version issue if anything.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
ntmr
Forum Members
Forum Members
Posts: 16
Joined: Wed Aug 05, 2009 12:27 am

Re: [solved, but question ensuing] modified_date / strftime issue

Post by ntmr »

Ah, I see. I'll close the request.
Post Reply

Return to “CMSMS Core”