-
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 date generation #81
Comments
@janostik thank you for reporting this. Won't you mind to contribute the test above as a pull request? Patches are welcome as well :) |
sure thing! I'll do the PR and look for possible patch later this week. |
@janostik Great! Thanks! |
@janostik below I provide some more context on fixing the issue about currently not supported "between" ranges, as mentioned in #84
Both cases illustrate that more intelligence is required at parse time:
This may require a refactor on how do we parse, represent and validate this piece of cron expression. If interested, I invite you to discuss ideas and work together on them on a separate branch, in order to fix this and related issues. By decoupling representation, from validations, we may get greater flexibility and perform more complex validations (ex.: question mark support at Quartz: requires to be present at either DoM or DoW, and we cannot support this semantics yet). |
Opening a new issue for issues regarding range parsing: #86 |
Cron utils incorrectly maps MON,TUE,.. to 2,3,4 in Quartz cron type. e.g. MON is mapped to 1, which is Sunday in Quartz system. Test to reproduce:
`@Test
public void test_weekday_number_name_matching() {
CronDefinition cronDefinition = CronDefinitionBuilder.instanceDefinitionFor(CronType.QUARTZ);
CronParser parser = new CronParser(cronDefinition);
date generated form MON,TUE,WED,.. expression : 2016-04-24T12:00:00.000Z (Sunday)
The text was updated successfully, but these errors were encountered: