mirror of
https://github.com/pterodactyl/panel.git
synced 2025-12-10 15:40:07 -06:00
fix: timezone issue in Schedule::getNextRunDate (#5381)
This commit is contained in:
parent
01fd763fe9
commit
9b703fb40f
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user