Re: [SMARTY] [PATCH] fix for a little bug in plugins/shared.make_timestamp.php
| From: | Ludovic LANGE | Date: | Sun, 23 Jun 2002 22:23:30 +0000 |
| Subject: | Re: [SMARTY] [PATCH] fix for a little bug in plugins/shared.make_timestamp.php | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4983@lists.php.net to get a copy of this message | ||
I'm using the CVS version, and the diff was made against the version 1.2 of the file.
I'm using the repository from cvs.php.net:/repository. Is there a fresher one ?
Ludovic LANGE
Monte Ohrt wrote:
Try the CVS version, there are already some changes made. Ludovic LANGE wrote:Hello, There is a very little bug in plugins/shared.make_timestamp.php which makes date_format not working when it is passed an UNIX timestamp (which should be ok, according to the manual : http://www.phpinsider.com/php/code/Smarty/docs/date.format.html ) This patch should correct this. Best regards, Ludovic LANGE ------------------------------------------------------------------------ Index: plugins/shared.make_timestamp.php =================================================================== RCS file: /repository/smarty/plugins/shared.make_timestamp.php,v retrieving revision 1.2 diff -u -r1.2 shared.make_timestamp.php--- plugins/shared.make_timestamp.php 18 Jun 2002 14:15:58 -0000 1.2 +++ plugins/shared.make_timestamp.php 23 Jun 2002 14:22:43 -0000@@ -23,6 +23,7 @@}// couldn't recognize it, try to return a time + $time = $string; if ((int) $time > 0) return (int) $time; else