kiorky/croniter

Timezone aware times give incorrect results

Closed this issue · 1 comments

The left is datetime.now(), the right is localized to New York.
US DST changes March 12 and Nov 4th, it looks look that is breaking this expression for March/Nov
Certainly others with L, also tried * * * * L5

0 0 L * *
2023-03-31 00:00:00 2023-03-30 23:00:00-04:00
2023-04-30 00:00:00 2023-03-31 00:00:00-04:00
2023-05-31 00:00:00 2023-04-30 00:00:00-04:00
2023-06-30 00:00:00 2023-05-31 00:00:00-04:00
2023-07-31 00:00:00 2023-06-30 00:00:00-04:00
2023-08-31 00:00:00 2023-07-31 00:00:00-04:00
2023-09-30 00:00:00 2023-08-31 00:00:00-04:00
2023-10-31 00:00:00 2023-09-30 00:00:00-04:00
2023-11-30 00:00:00 2023-10-31 00:00:00-04:00
2023-12-31 00:00:00 2023-11-30 01:00:00-05:00

duplicate #1