Re: colons in date_format string
| From: | Monte Ohrt | Date: | Wed, 07 Feb 2001 18:00:22 +0000 |
| Subject: | Re: colons in date_format string | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-90@lists.php.net to get a copy of this message | ||
pipes "|" don't work right either. This is fixed in 1.3.0.
Colin Dewey wrote:
>
> When using ":" in a date_format string such as in the Smarty manual example:
>
> {* print the hour, minute and second portion of a date *}
> {$startTime|date_format:"%h:%m:%s"}
>
> The output looks like:
>
> 10, 33, 02
>
> instead of:
>
> 10:33:02
>
> I got around this by using the hex escape sequence for the colon character,
> but it would be nice to know why even the manual example doesn't work.
>