From 8c786342fd30ac02f3cba9150d78a3864fefce48 Mon Sep 17 00:00:00 2001
From: Urban Müller
Date: Thu, 6 Apr 2017 23:14:05 +0200
Subject: use real time, not the one set by time- debug param

---
 it.class | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/it.class b/it.class
index 1403013..f229ba4 100644
--- a/it.class
+++ b/it.class
@@ -240,7 +240,7 @@ static function error($p = array())
 
 				$body .= "Host: " . getenv('HOSTNAME') . "\n\n";
 				$body .= $p['id']     ? "Filter: graceperiod={$p['graceperiod']} timewindow={$p['timewindow']}\n\n" : "";
-				$body .= "Time: " . it::date() . "\n\n";
+				$body .= "Time: " . date("Y-m-d H:i:s") . "\n\n"; # no it::date() because of time- debug param
 				$body .= $_GET        ? "\$_GET: "    . var_export($_GET, true) . "\n\n" : "";
 				$body .= $_POST       ? "\$_POST: "   . var_export($_POST, true) . "\n\n" : "";
 				$body .= $_COOKIE     ? "\$_COOKIE: " . var_export($_COOKIE, true) . "\n\n" : "";
@@ -261,7 +261,7 @@ static function error($p = array())
 	if ($_SERVER['REMOTE_ADDR']) # additional entry in log/error_log
 		error_log("it::error: " . $p['title'] . " Url: $url");
 
-	file_put_contents("/tmp/alertdata/alert.log", it::date() . " " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url\n", FILE_APPEND);
+	file_put_contents("/tmp/alertdata/alert.log", date("Y-m-d H:i:s") . " " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url\n", FILE_APPEND);
 	@chmod("/tmp/alertdata/alert.log", 0777);
 
 	return null;
-- 
cgit v1.2.3