Skip to content

Commit

Permalink
ltb-project#128: Changed date format to fit in table.
Browse files Browse the repository at this point in the history
  • Loading branch information
abpai94 committed Jul 30, 2024
1 parent fd510cf commit 5d74f76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/audit.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 5d74f76

Please sign in to comment.