summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2011-11-08 16:13:34 +0000
committerChristian Schneider2011-11-08 16:13:34 +0000
commit3c597ce7f9bfd0493ae76dc8d51566e107c56c66 (patch)
treeb68510a761e617282b131ed670c6e43440071aa6
parente5ef2f40454cd5a57cd42c0c549868ed058448d8 (diff)
downloaditools-3c597ce7f9bfd0493ae76dc8d51566e107c56c66.tar.gz
itools-3c597ce7f9bfd0493ae76dc8d51566e107c56c66.tar.bz2
itools-3c597ce7f9bfd0493ae76dc8d51566e107c56c66.zip
Temporarily added logging of float timestamps for it::date()
-rw-r--r--it.class3
1 files changed, 3 insertions, 0 deletions
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, '.')))