$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 speedgaming is in DST, it fucks up the timestamp
+ if (Carbon::now(new \DateTimeZone('America/Chicago'))->dst) {
+ $start->add(1, 'hour');
+ }
+ if (!$episode->start || $start->ne($episode->start)) {
$episode->start = $start;
}
$episode->estimate = $sgEntry['length'] * 60;