Re: [SMARTY] [PATCH] fix for a little bug in plugins/shared.make_timestamp.php

From: Date: Sun, 23 Jun 2002 16:02:02 +0000
Subject: Re: [SMARTY] [PATCH] fix for a little bug in plugins/shared.make_timestamp.php
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4978@lists.php.net to get a copy of this message
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


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