You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case the value returned by cronExpression.next(current) is 2021-03-30T00:05 instead of the expected 2021-03-29T00:05.
To be more precise any input date between 2021-03-28T00:05+01:00 and 2021-03-28T01:59+01:00 will calculate next execution to 2021-03-30T00:05 instead of the expected 2021-03-29T00:05.
After DST, next execution is successfully calculated i.e. 2021-03-29T00:05.
The text was updated successfully, but these errors were encountered:
sbrannen
changed the title
CronExpression fail to calculate next execution on the day of daylight saving time
CronExpression fails to calculate next execution on the day of daylight saving time
Feb 11, 2022
Affects: Spring Framework 5.3.15
Looks like the fix for #26744 doesn't cover the following case.
Problem:
CronExpression
fails to calculate properly next execution when running on the day of daylight saving time, just before DST is applied.In this case the value returned by
cronExpression.next(current)
is2021-03-30T00:05
instead of the expected2021-03-29T00:05
.To be more precise any input date between
2021-03-28T00:05+01:00
and2021-03-28T01:59+01:00
will calculate next execution to2021-03-30T00:05
instead of the expected2021-03-29T00:05
.After DST, next execution is successfully calculated i.e.
2021-03-29T00:05
.The text was updated successfully, but these errors were encountered: