kiorky / croniter

MIT License
410 stars 40 forks source link

start_time not respected in get_next/get_prev/all_next/all_prev #85

Closed hesstobi closed 4 months ago

hesstobi commented 4 months ago

The argument start_time does not have any effect with version 3.0.1

Code to reproduce

cron = croniter("* * * * * *")
cron.set_current(datetime(2024, 7, 12), force=True)
cron.get_next(datetime, start_time=datetime(2024, 7, 26))

Actual output

datetime(2024, 7, 12, 0, 0, 1)

Expected output

datetime(2024, 7, 26, 0, 0, 1)