From 52e2229588ca65dddc9bd89053ab7194b7800c3d Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 16 Dec 2022 13:15:37 +0100 Subject: [PATCH] wip --- src/Illuminate/Console/Scheduling/ScheduleListCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php index 155095874cd1..615bb4c6497c 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php @@ -175,7 +175,7 @@ private function sortEvents(\Illuminate\Support\Collection $events, DateTimeZone */ private function getNextDueDateForEvent($event, DateTimeZone $timezone) { - return Carbon::create( + return Carbon::instance( (new CronExpression($event->expression)) ->getNextRunDate(Carbon::now()->setTimezone($event->timezone)) ->setTimezone($timezone)