diff --git a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php index 3b9780f13b6f..b1b0bdde59ff 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php @@ -3,6 +3,7 @@ namespace Illuminate\Console\Scheduling; use Cron\CronExpression; +use DateTimeZone; use Illuminate\Console\Command; use Illuminate\Support\Carbon; @@ -39,7 +40,7 @@ public function handle(Schedule $schedule) $event->description, (new CronExpression($event->expression)) ->getNextRunDate(Carbon::now()->setTimezone($event->timezone)) - ->setTimezone($this->option('timezone', config('app.timezone'))) + ->setTimezone(new DateTimeZone($this->option('timezone') ?? config('app.timezone'))) ->format('Y-m-d H:i:s P'), ]; }