From 6942d9f4fba74722331e3660c34a143639eed858 Mon Sep 17 00:00:00 2001 From: Charles T Date: Mon, 2 Oct 2023 10:05:59 +0800 Subject: [PATCH] Add (ai gen) --- app/Console/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }