kiorky / croniter

MIT License
410 stars 40 forks source link

Croniter `get_prev` fails on leap year days (like today) #62

Closed pvieito closed 9 months ago

pvieito commented 9 months ago

Croniter get_prev fails on leap year days (like today):

import croniter
import datetime

croniter.croniter("15 22 29 2 *", datetime.datetime(2024, 2, 29)).get_prev(datetime.datetime)
# raises: croniter.croniter.CroniterBadDateError: failed to find prev date
kiorky commented 9 months ago

This was already fixed in release 2.0.2 (6824882167f67c7f2e1c34d0e8c9e4fd73ba499f)

pvieito commented 9 months ago

@kiorky Thanks!