Re: [SMARTY] smarty date format error (on AMD64?)

From: Date: Tue, 01 Feb 2005 13:59:40 +0000
Subject: Re: [SMARTY] smarty date format error (on AMD64?)
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12212@lists.php.net to get a copy of this message
I assume that date() would work ? 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


« previous php.smarty.general (#12212) next »