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

Day of Week, expression "1-5" results in execution on Sunday? #29

Open
Thorongil80 opened this issue Aug 22, 2022 · 1 comment
Open

Comments

@Thorongil80
Copy link

Hi,

I use the expression "1-5" for weekdays for a job running at 1pm.
After I schedule, when I check on Friday after the execution with time_till_next_job and calculate, I get an execution on Sunday!

For cron, the values "0" and "7" designate sundays.

Is there a bug with array start or something? Can you verify this on your side?

Best Regards,
Thomas

@BlackDex
Copy link

Not something that can be fixed (easily) by other crates then within the cron crate it self.
But (as mentioned on the linked issue), that isn't wise to do, as it will cause issues with already configured jobs.

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

2 participants