date_format bug?
| From: | Richard Watt | Date: | Sun, 19 Jan 2003 19:05:22 +0000 |
| Subject: | date_format bug? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7265@lists.php.net to get a copy of this message | ||
Im timing how long it takes to do something (in seconds) and trying to
use date_format, and it's producing odd results;
{php}echo strftime("%H:%M:%S",$_SESSION['startTime']);{/php}
produces "00:00:07" (correct)
whereas {$startTime|date_format:"%H:%M:%S"} produces
"07:00:00" (6 hours, 59 minues and 53 seconds off)
Bug or feature?
-- Richard