Re: colons in date_format string
| From: | Andrei Zmievski | Date: | Wed, 07 Feb 2001 17:53:30 +0000 |
| Subject: | Re: colons in date_format string | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-87@lists.php.net to get a copy of this message | ||
On Wed, 07 Feb 2001, 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.
Because you just found a bug that we've already fixed for 1.3.0. :)
-Andrei
* On the keyboard of life, always keep one finger on the escape key. *