Make sure all dates are in UTC (#1139)
This commit is contained in:
@@ -37,7 +37,7 @@ class DeletePireps extends Listener
|
||||
*/
|
||||
protected function deletePireps(int $expire_time_hours, int $state)
|
||||
{
|
||||
$dt = Carbon::now()->subHours($expire_time_hours);
|
||||
$dt = Carbon::now('UTC')->subHours($expire_time_hours);
|
||||
$pireps = Pirep::where('created_at', '<', $dt)->where(['state' => $state])->get();
|
||||
|
||||
/** @var PirepService $pirepSvc */
|
||||
|
||||
Reference in New Issue
Block a user