From: Daniel Karbach Date: Sun, 26 Feb 2023 19:15:10 +0000 (+0100) Subject: fix initial match time X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=0d1207dcfc97a2d91dccdbef869f053249f15f5a;p=alttp.git fix initial match time --- 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;