Skip to content

next_run returns wrong value #2

Description

@opussf

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) ).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions