keep recent format of date

just output a 'T' insted of the Timezone
This commit is contained in:
Jakob Ackermann
2016-10-09 17:46:37 +02:00
parent 0197ca79fd
commit 91683a62ee
+1 -1
View File
@@ -125,7 +125,7 @@
$hostname = trim(file_get_contents("/etc/hostname"), "\x00..\x1F");
foreach ($dns_queries as $query) {
$time = exec("date --date='" . trim(substr($query, 0, 16)) . "' +'%Y-%m-%d\%Z%H:%M:%S'");
$time = exec("date --date='" . trim(substr($query, 0, 16)) . "' +'%Y-%m-%dT%H:%M:%S'");
$exploded = explode(" ", trim($query));
$tmp = $exploded[count($exploded)-4];
$status = "";