Closed Dunedan closed 2 years ago
I also noticed that this affects the change from standard time to DST as well:
2021-03-27 00:00:00+01:00
2021-03-28 00:00:00+01:00
2021-03-28 23:00:00+02:00
2021-03-29 00:00:00+02:00
2021-03-30 00:00:00+02:00
i wont have time to fix dst changes, unfortunatly, if you can, you may submit a PR. Thanks though for the report.
dup kiorky/croniter#1
I just noticed
croniter
producing wrong next datetimes when iterating over the change from DST to standard time.Take this example, where the change from DST to standard time happens on 2020-10-25 03:00:00+02:00 to 2020-10-25 02:00:00+01:00:
When running this, it results in:
Notice the
2020-10-26 01:00:00+01:00
which is obviously wrong.When choosing an hour after the change, the problem persists, but moves to the day the DST -> standard time change happened: