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
Given a cron expression * 6-20 * * *, at 6:01.
I expect .prev() to be 6:00 and then .next() to be 6:01.
Actually .prev() is 6:00 as expected but then .next() is 7:00 instead of 6:01.
Given date 01-01-2023 6:00:00
previous .. Sat Dec 31 2022 20:59:00 GMT+0100
current ..... Sun Jan 01 2023 06:00:00 GMT+0100
next .......... Sun Jan 01 2023 06:01:00 GMT+0100
Given date 01-01-2023 6:01:00
previous .. Sun Jan 01 2023 06:00:00 GMT+0100
current ..... Sun Jan 01 2023 07:00:00 GMT+0100 <------------ ?
next .......... Sun Jan 01 2023 07:01:00 GMT+0100
Given date 01-01-2023 6:02:00
previous .. Sun Jan 01 2023 06:01:00 GMT+0100
current ..... Sun Jan 01 2023 06:02:00 GMT+0100
next .......... Sun Jan 01 2023 06:03:00 GMT+0100
Thanks for reporting this! Looks like a bug to me. By a quick look, it seems that DST handling craps itself out when mixing prev/next calls and creates an invalid state. Needs some more time (no ETA) for in-depth investigation. I'll later also try to test with current ongoing TS rewrite, as it may have been already resolved over there.
Given a cron expression
* 6-20 * * *
, at6:01
.I expect
.prev()
to be6:00
and then.next()
to be6:01
.Actually
.prev()
is6:00
as expected but then.next()
is7:00
instead of6:01
.Reproduction code
See this StackBlitz
Can you confirm whether there is a bug on your side or if I do something wrong?
The text was updated successfully, but these errors were encountered: