Re: [SMARTY] date_format cross platform issue...
| From: | Monte Ohrt | Date: | Mon, 03 Mar 2003 21:39:03 +0000 |
| Subject: | Re: [SMARTY] date_format cross platform issue... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8352@lists.php.net to get a copy of this message | ||
There is an alternative date_format that uses PHP date() here:
http://smarty.incutio.com/?page=SmartyPlugins
Monte
On Mon, 2003-03-03 at 15:06, Jonathan wrote:
> 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?
>
--
Monte Ohrt <monte@ispi.net>