Re: [SMARTY] date_format bug?
| From: | Monte Ohrt | Date: | Sun, 19 Jan 2003 20:02:19 +0000 |
| Subject: | Re: [SMARTY] date_format bug? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7266@lists.php.net to get a copy of this message | ||
date_format uses strftime directly, so maybe your $startTime isn't what you think it is?
Richard Watt wrote:
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