diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 5c2cc64..ec3d881 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -44,7 +44,7 @@ protected function schedule(Schedule $schedule) ->onConnection('default'); // Update the next random run time for the following day using Eloquent - $nextRun->next_run_time = now()->addMinutes(rand(1200, 1440))->toTimeString(); + $nextRun->next_run_time = now()->addMinutes(rand(1200, 1440))->format('H:i:00'); $nextRun->save(); } }