mirror of
https://github.com/pterodactyl/panel.git
synced 2025-12-11 19:21:34 -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);
|
$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(
|
return CarbonImmutable::instance((new CronExpression($formatted))->getNextRunDate());
|
||||||
(new CronExpression($formatted))->getNextRunDate()->getTimestamp()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user