diff --git a/app/Models/Schedule.php b/app/Models/Schedule.php index 2d85314f0c..3124b78870 100644 --- a/app/Models/Schedule.php +++ b/app/Models/Schedule.php @@ -120,9 +120,7 @@ public function getNextRunDate(): CarbonImmutable { $formatted = sprintf('%s %s %s %s %s', $this->cron_minute, $this->cron_hour, $this->cron_day_of_month, $this->cron_month, $this->cron_day_of_week); - return CarbonImmutable::createFromTimestamp( - (new CronExpression($formatted))->getNextRunDate()->getTimestamp() - ); + return CarbonImmutable::instance((new CronExpression($formatted))->getNextRunDate()); } /**