Skip to content

Conversation

execsuroot
Copy link

Problem: The schedule was running multiple times instead of once because the next run date was being set to UTC, ignoring the specified timezone for Pterodactyl.

Solution: Changed the code to use CarbonImmutable::instance instead of CarbonImmutable::createFromTimestamp. This preserves the timezone information from the CronExpression's getNextRunDate method, ensuring the schedule runs at the correct local time.

@execsuroot
Copy link
Author

Fixes the #5237 issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant