Skip to content

Commit

Permalink
eval if cron is due based on timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen committed Nov 26, 2023
1 parent 6ffdab4 commit 94a2906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function schedule(Schedule $schedule): void
// Evaluate if a run is needed based on the schedule
$cron = new CronExpression($settings->speedtest_schedule);

return $cron->isDue();
return $cron->isDue(now()->timezone($settings->timezone ?? 'UTC'));
});
}

Expand Down

0 comments on commit 94a2906

Please sign in to comment.