From 5a35cecdcd8658113102ae98fc04e764e0ee9ed0 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 25 Jun 2023 21:46:12 +0200 Subject: Updated includes/components/timeline.inc (automated) --- includes/components/timeline.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/components/timeline.inc') diff --git a/includes/components/timeline.inc b/includes/components/timeline.inc index 6c85472..0ec8870 100644 --- a/includes/components/timeline.inc +++ b/includes/components/timeline.inc @@ -42,7 +42,7 @@ function displayTimeline($systems) { global $app; $showIcons = count($systems) > ...array_reverse(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/switches.json"), true)), [ 'id' => '00000000-0000-0000-0000-000000000000', - 'timestamp' => date('c', time() + 60), + 'timestamp' => date('c', time() + 3600), 'members' => [] ] ]; @@ -52,7 +52,7 @@ function displayTimeline($systems) { global $app; $showIcons = count($systems) > $correct = $switches[$index - 1]; $v = floor((strtotime($switch["timestamp"]) - $time) / 60); - echo('' . implode(", ", array_map(function ($i) { + echo('' . implode(", ", array_map(function ($i) { return getMemberWithoutSystem($i)["display_name"] ?? getMemberWithoutSystem($i)["name"] ?? $i; }, $correct["members"])) . ''); -- cgit