]> git.localhorst.tv Git - alttp.git/commitdiff
fix timezone on SRA imports
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 13 Mar 2023 12:13:40 +0000 (13:13 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 13 Mar 2023 12:13:40 +0000 (13:13 +0100)
app/Console/Commands/SyncSRA.php

index 45c2002edd67ce522ffd5ea06ca88625d9271ec7..fcf7a41bb58e085c29366c844577e2fd613511a3 100644 (file)
@@ -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;
                }