Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next_run returns wrong value #2

Open
opussf opened this issue Aug 21, 2016 · 0 comments
Open

next_run returns wrong value #2

opussf opened this issue Aug 21, 2016 · 0 comments

Comments

@opussf
Copy link

opussf commented Aug 21, 2016

Description: Given a cron string that fires once a week, and the date given to next_run is on the last day of a month with 31 days, the returned month value it not incremented.

Expected: Returned month value is incremented. Returns datetime( 2016, 9, 7, 20, 0 )

Actual: month value is same as the one given. Returns datetime( 2016, 8, 7, 20, 0 )

Reproduce:
Cron string "0 18 * * 3" (6pm every Wednesday).
next_run( datetime.datetime(2016, 8, 31, 20, 01) ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant