-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Scheduler] Allow setting cron expression next run date timezone #50572
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 “Si 8000 gn 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
[Scheduler] Allow setting cron expression next run date timezone #50572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @danielburger1337, this looks good to me.
It will need to be against 6.4 though. Experimental just means we may/can introduce BC breaks in 6.4 but other than that, the process for new features remains the same.
Could you add a simple test that proves the timezone is being used?
This would be in the Scheduler |
I am even worse at using git than I thought. 😒 I think the rebase worked in the end but for some reason GitHub automatically requested a review from a bunch of people. |
No worries, I've seen that a lot lately with PR's being updated from 6.3 to 6.4. I don't think there's a way to avoid. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is some nitpicking. Thanks for the PR.
src/Symfony/Component/Scheduler/Tests/Trigger/CronExpressionTriggerTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Scheduler/Tests/Trigger/CronExpressionTriggerTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Scheduler/Trigger/CronExpressionTrigger.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Scheduler/Trigger/CronExpressionTrigger.php
Outdated
Show resolved
Hide resolved
Thank you @danielburger1337. |
Allow setting the timezone for the next run date derived from a cron expression.
This is my first contribution to an experimental component and therefor I am not familiar with the exact contribution guidelines.
As this component is experimental, I think it is ok to submit this PR against branch 6.3, right?
Im also not sure about the CHANGELOG.md entry I should make. Would I add this under the 6.3.1 section or where?