-
Notifications
You must be signed in to change notification settings - Fork 264
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
Incorrect next execution time for "month" and "day of week" #59
Comments
@mjsaber thank you for reporting this. Help is appreciated! |
I'd like to help. Any idea how should I start? Or what is the best practice to go through the code? |
@mjsaber I just uploaded two tests with the reported case, one for checking months behavior, another for DoW assertions. I did not made specific assertions on them. Can you check what assertions are required, and debug from there on what should be changed? Months scale is definitively an important code point to check. Let me know if I can help with further context in any piece of code. Thank you! |
@jmrozanec I think the implementation of Thanks, |
Hello @mjsaber! First you would need to fork this repo, then implement the changes and commit to your fork. When you are ready, you issue a pull request. I will review it, and merge into this repo. When proposing a fix, please provide some unit tests, to ensure the case is covered. |
@mjsaber Fixed and closed! Thanks for contributing a fix! |
16:32:56.633 [main] DEBUG c.cronutils.model.time.ExecutionTime - computing days for [class com.cronutils.model.field.expression.Every]
16:32:56.637 [main] DEBUG c.cronutils.model.time.ExecutionTime - computing days 4
16:32:56.639 [main] DEBUG c.cronutils.model.time.ExecutionTime - computing days for [class com.cronutils.model.field.expression.Every]
16:32:56.639 [main] DEBUG c.cronutils.model.time.ExecutionTime - computing days 4
Scan time 2015-12-10T16:32:56.586-08:00, next execution time: 2015-12-10T16:33:00.000-08:00
(12/10/2015 is Thursday)
This is incorrect. Month */4 should mean Jan, May and Sep because month entry range should be (1-12), now it looks like it calculated from 0. In terms of Day of Week */5, it should be Sun, Fri, but not Thu.
The text was updated successfully, but these errors were encountered: