From 0d1207dcfc97a2d91dccdbef869f053249f15f5a Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 26 Feb 2023 20:15:10 +0100 Subject: [PATCH] fix initial match time --- app/Console/Commands/SyncSpeedGaming.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index 75f3cbc..3f2058f 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -104,7 +104,7 @@ class SyncSpeedGaming extends Command { $episode->event()->associate($event); $episode->title = $sgEntry['match1']['title']; $start = Carbon::createFromFormat('Y-m-d\TH:i:sP', $sgEntry['when']); - if ($start->ne($episode->start)) { + if (!$episode->start || $start->ne($episode->start)) { $episode->start = $start; } $episode->estimate = $sgEntry['length'] * 60; -- 2.39.2