From: Daniel Karbach Date: Mon, 13 Mar 2023 12:13:40 +0000 (+0100) Subject: fix timezone on SRA imports X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=0b1d3a5d96fc054d991b5e1f6eedd581cbfc5855;p=alttp.git fix timezone on SRA imports --- diff --git a/app/Console/Commands/SyncSRA.php b/app/Console/Commands/SyncSRA.php index 45c2002..fcf7a41 100644 --- a/app/Console/Commands/SyncSRA.php +++ b/app/Console/Commands/SyncSRA.php @@ -83,7 +83,7 @@ class SyncSRA extends Command { } else { $episode->title = $row[2]; } - $start = Carbon::createFromFormat('m/d/Y H:i', $row[0].' '.$row[1], 'America/Chicago'); + $start = Carbon::createFromFormat('m/d/Y H:i', $row[0].' '.$row[1], 'America/Chicago')->setTimezone('UTC'); if (!$episode->start || $start->ne($episode->start)) { $episode->start = $start; }