Open PierreDemailly opened 1 year ago
Hi @PierreDemailly!
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?