From 3c597ce7f9bfd0493ae76dc8d51566e107c56c66 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 8 Nov 2011 16:13:34 +0000 Subject: Temporarily added logging of float timestamps for it::date() --- it.class | 3 +++ 1 file changed, 3 insertions(+) (limited to 'it.class') diff --git a/it.class b/it.class index 69626bb..744a4cb 100644 --- a/it.class +++ b/it.class @@ -718,6 +718,9 @@ static function gets() */ static function date($format = "", $stamp = null) { + if (is_float($stamp)) # Temporary logging of float timestamps + @it::log('it_date_float', $stamp, it_debug::backtrace()); + if (!isset($stamp)) $stamp = time(); else if (!is_int($stamp) && !ctype_digit($stamp) && (!is_float($stamp) || strstr($stamp, '.'))) -- cgit v1.2.3