From 5d74f7682bcf65fb0a0d9e12a793a0dce3866de2 Mon Sep 17 00:00:00 2001 From: Abhishek Pai Date: Tue, 30 Jul 2024 13:42:29 +0200 Subject: [PATCH] #128: Changed date format to fit in table. --- lib/audit.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/audit.inc.php b/lib/audit.inc.php index 1ad9aa2..35db3ee 100644 --- a/lib/audit.inc.php +++ b/lib/audit.inc.php @@ -30,6 +30,7 @@ function displayauditlog($audit_log_file, $audit_log_days) { $json = json_decode($line, true); $logdate = DateTimeImmutable::createFromFormat("D, d M Y H:i:s", $json['date']); if ($logdate > $olddatelog) { + $json['date'] = date_format($logdate, "Y-m-d H:i:s"); array_push($entries, $json); } }