date_format cross platform issue...

From: Date: Mon, 03 Mar 2003 21:06:22 +0000
Subject: date_format cross platform issue...
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8351@lists.php.net to get a copy of this message
Hello all, I'm having a irritating issue with date_format, on my bsd systems, I understand date_format is a wrapper to strftime() in php which is a wrapper to the systems strftime() function. I have a freebsd webserver that displays this date format fine: {$Time|date_format:"%l:%M %p"} However on my Linux webserver I get template errors: Parse error: parse error, unexpected ')' I understand this is really not a simple way of fixing, as my application will be deployed on one or the other, and soon even on solaris boxes, I haven't a clue how strftime() works, and if there is even a way to display this properly without having to wrap everything around conditions. Does anyone know a possible solution to my date_format issue?

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