[ic] date_convert zerofix fails unless surrounded by space
Paul Jordan
paul at gishnetwork.com
Tue Aug 9 22:47:16 UTC 2011
> I've notice that the zerofix parameter doesn't work if the format specifier
> is butted up to another specifier. Here is some test code that can be pasted
> onto any page.
>
> This will work as expected:<br />
> [convert_date zerofix=1 fmt="%I %P"][/convert_date]
>
> <br /><br />
>
> This will not:<br />
> [convert_date zerofix=1 fmt="%I%P"][/convert_date]
>
>
> BTW - that is a captial eye, not lowercase L.
>
> I think it is a bug, or...?
>
> Paul Jordan
Paul, try this: fmt="%-I%P" http://linux.die.net/man/3/strftime Says if you are using glibc there are additional conversation flags. It works for me with your test code. Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20110809/be95e00d/attachment.html>
More information about the interchange-users
mailing list