Re: [SMARTY] smarty date format error (on AMD64?)
| From: | messju mohr | Date: | Tue, 01 Feb 2005 14:21:58 +0000 |
| Subject: | Re: [SMARTY] smarty date format error (on AMD64?) | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12213@lists.php.net to get a copy of this message | ||
On Tue, Feb 01, 2005 at 01:59:40PM +0000, pete M wrote:
> I assume that date() would work ?
date() works, strftime() also works.
smarty_modifier_date_format() doesn't work because it uses
smarty_shared_make_timestamp() which itself uses strtotime().
> Messju Mohr wrote:
> >On Tue, Feb 01, 2005 at 01:17:43AM +0000, Abdul-Wahid Paterson wrote:
> >
> >>Hi,
> >>
> >>I have a date formating error with smarty on my AMD64 machine. When I
> >>use {$smarty.now|date_format:"%Y"} in my template it prints
> >>
> >>110722
> >>
> >>instead of
> >>
> >>2005
> >>
> >>I have several places in my code where I use $smarty.now with various
> >>fomatting options. All of them seem to be mucked up on my AMD64
> >>machine but fine on my x86 machines using the same code base.
> >>
> >>Oh, and normal PHP dates work fine on my AMD64 e.g. print date("Y")
> >>prints 2005.
> >>
> >>Any ideas???
> >
> >
> >strtotime is broken on 64-bit machines:
> >http://bugs.php.net/bug.php?id=30215
> >
> >
> >>Abdul-Wahid
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php