-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
[6.x] Fix defaultTimezone not respected in scheduled Events #33834
Conversation
I have re-targetted to Laravel 8, because upgrading to version 3 of the cron package is a major breaking change, because they have changed how things work since version 2, and we already upgraded Laravel 8 only, for that reason. |
I have also rebased your PR, so the composer.json updates don't show up anymore. |
45b8f83
to
00eeef9
Compare
@GrahamCampbell I took out the the cron package change and created a new PR without the update, this is a new PR with only the CallbackEvent changes |
Co-Authored-By: Stephen Odoardi <sodoardi@users.noreply.github.com>
00eeef9
to
a244230
Compare
Ah, I see, so you're saying the upgraded version was not necessary? |
It is necessary for the other bug :), which affects all dailyAt() etc. which evaluate in the cron expression |
Right, I see. I don't think the upstream package authors considered that to be a bug, but decided to change the behaviour in v3 to "what you would expect", and considered it a breaking change. For this reason, you will have to wait till Laravel 8 to get v3 of that package. It should still be possible to work around the issue though. There should be some information about the changes on the upstream repo. :) |
yea unfortunately they fixed together with the major change, I asked them to backport the fix to the 2.x versions, lets see. Its in the changelog fixes:
in my project im doing the good old dragonmark/cron-expression:"3.0.0 as 2.4.0" hack, since the breaking change in behaviour doesn't affect my project |
Update CallbackEvent
-> CallbackEvents were not injected with the timezone on construction making them ignore the schedulers timezone on $event->between() settings