$episode->event()->associate($event);
$episode->title = $sgEntry['match1']['title'];
$start = Carbon::createFromFormat('Y-m-d\TH:i:sP', $sgEntry['when']);
- if ($event->fix_timezone) {
+ if ($event->fix_timezone && !$episode->timezone_fix_override) {
$sg_zone = new \DateTimeZone('America/Chicago');
$event_zone = new \DateTimeZone($event->fix_timezone);
// if speedgaming is in DST, it fucks up the timestamp
--- /dev/null
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::table('episodes', function(Blueprint $table) {
+ $table->boolean('timezone_fix_override')->default(false);
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('episodes', function(Blueprint $table) {
+ $table->dropColumn('timezone_fix_override');
+ });
+ }
+};