From 91683a62ee14c549d85ef4187da9caadb3ebf0b0 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Sun, 9 Oct 2016 17:46:37 +0200 Subject: [PATCH] keep recent format of date just output a 'T' insted of the Timezone --- data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.php b/data.php index 2515f7b8..4cbc850a 100644 --- a/data.php +++ b/data.php @@ -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 = "";