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
Scheduling a task that runs once a day results in March 28 being skipped #26744
Comments
This commit fixes an issue with CronExpression when used in combination with ZonedDateTime and daylight saving time. Closes spring-projectsgh-26744
Hello, Looks like there is still a problem for the following case : In this case the value returned by |
@guilroux, please do not comment on closed tickets. If you believe you have discovered a bug, please open a new ticket to report it. Thanks |
This commit fixes an issue with CronExpression when used in combination with ZonedDateTime and daylight saving time. Closes spring-projectsgh-26744
Affects: Spring Framework 5.3.1
Problem: Scheduled task marked with the annotation
@Scheduled(cron = ""0 0 9 * * *"", zone = "Europe/Amsterdam")
did not run on March 28Expected behaviour: The scheduled task should have run on March 28
How to reproduce: The bug seems to be related to the class
CronExpression
introduced in version 5.3In this case the value returned by
cronExpression.next()
is2021-03-29T09:00:00
instead of the expected2021-03-28T09:00:00
The text was updated successfully, but these errors were encountered: