Make sure all dates are in UTC (#1139)
This commit is contained in:
@@ -26,7 +26,7 @@ class RemoveExpiredLiveFlights extends Listener
|
||||
return;
|
||||
}
|
||||
|
||||
$date = Carbon::now()->subHours(setting('acars.live_time'));
|
||||
$date = Carbon::now('UTC')->subHours(setting('acars.live_time'));
|
||||
Pirep::where('updated_at', '<', $date)
|
||||
->where('state', PirepState::IN_PROGRESS)
|
||||
->delete();
|
||||
|
||||
Reference in New Issue
Block a user