diff --git a/app/Models/Schedule.php b/app/Models/Schedule.php index 2d85314f0..3124b7887 100644 --- a/app/Models/Schedule.php +++ b/app/Models/Schedule.php @@ -120,9 +120,7 @@ class Schedule extends Model { $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()); } /**