Skip to content

Could it be the numerical values for day of week are off by one? #113

@Thorongil80

Description

@Thorongil80

Hi,

I use job_scheduler https://docs.rs/job_scheduler/latest/job_scheduler/ which apparently pulls cron 0.6.1 as dependency.

I noticed that this expression

0 0 17 * * Mon-Sat

is not

0 0 17 * * 1-6

Which according to crontab format however, it should be. The latter expression would fire on Sundays till Friday.

Are you one off in the numerical format for day-of-week?

Or were you one off back then with 0.6.1?

Should I ask job_scheduler to bump to newer version? I opened an issue with them lholden/job_scheduler#29

Best Regards,
Thomas

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