Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: timezone is lost during the creation of CarbonImmutable in Schedule #5295

Open
wants to merge 1 commit into
base: 1.0-develop
Choose a base branch
from

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