colons in date_format string
| From: | Colin Dewey | Date: | Wed, 07 Feb 2001 17:49:04 +0000 |
| Subject: | colons in date_format string | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-85@lists.php.net to get a copy of this message | ||
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.