Re: [SMARTY-DEV] bug: date_format fails on some timestamp values
| From: | messju mohr | Date: | Sat, 11 Oct 2003 09:34:59 +0000 |
| Subject: | Re: [SMARTY-DEV] bug: date_format fails on some timestamp values | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1893@lists.php.net to get a copy of this message | ||
fixed in cvs. thanks!
On Fri, Oct 10, 2003 at 09:41:19PM +0400, Konstantin A. Pelepelin wrote:
> example:
>
> $ts=1064404902.021;
> echo strftime("%Y-%m-%d",$ts);
> // output: 2003-09-24
> echo smarty_modifier_date_format($ts,"%Y-%m-%d");
> // output: NOTHING!
>
> Actually, value is numeric and is 14 chars length,
> so it is grabbed by "mysql" block of smarty_make_timestamp().
>
> WBR,
> Konstantin A. Pelepelin