Page 1 of 1

[solved, but question ensuing] modified_date / strftime issue

Posted: Sun Aug 23, 2009 12:37 am
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?

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

Posted: Fri Sep 04, 2009 6:34 pm
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.

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

Posted: Sat Sep 05, 2009 10:58 pm
by ntmr
Ah, I see. I'll close the request.