SVN: PLD-BTS/trunk/flyspray/functions.inc.php

arekm arekm at pld-linux.org
Fri Mar 23 13:09:25 CET 2007


Author: arekm
Date: Fri Mar 23 13:09:23 2007
New Revision: 8399

Modified:
   PLD-BTS/trunk/flyspray/functions.inc.php
Log:
date() prints warning if timestamp is a string. Force conversion.

Modified: PLD-BTS/trunk/flyspray/functions.inc.php
==============================================================================
--- PLD-BTS/trunk/flyspray/functions.inc.php	(original)
+++ PLD-BTS/trunk/flyspray/functions.inc.php	Fri Mar 23 13:09:23 2007
@@ -557,7 +557,7 @@
 		if($dateformat == '')		
 			$dateformat = $extended ? "l, j M Y, g:ia" : "Y-m-d";
 
-		return date($dateformat, $timestamp);
+		return date($dateformat, (double)$timestamp);
 	}
 	
 	function logEvent($task, $type, $newvalue = '', $oldvalue = '', $field = '')


More information about the pld-cvs-commit mailing list