[solved, but question ensuing] modified_date / strftime issue
Posted: Sun Aug 23, 2009 12:37 am
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:
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?
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"}.
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?