We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Set CronExpression of weekdayonly with a certain day, e.g. 15W. The month will be skipped if the specified day is Saturday.
Version used
3.8.1
To Reproduce
[Test] public void TestCronExpression() { CronExpression cronExpression = new CronExpression("0 0 12 15W * ?"); DateTimeOffset? nextFireTime = cronExpression.GetTimeAfter((DateTimeOffset) new DateTime(2024, 5, 15, 12, 0, 0).ToUniversalTime()); Assert.IsTrue(nextFireTime.Value.Month == 6, $"CronExpression failed"); } Result is 7/15/2024
Expected behavior
6/14/2024
Additional context
The text was updated successfully, but these errors were encountered:
Version used is 4.0.0.0
Sorry, something went wrong.
Fix CronExpression not selecting correct nextValue for weekdayonly an…
a021a86
…d month flags. Relates to quartznet#2331
No branches or pull requests
Describe the bug
Set CronExpression of weekdayonly with a certain day, e.g. 15W. The month will be skipped if the specified day is Saturday.
Version used
3.8.1
To Reproduce
[Test]
public void TestCronExpression()
{
CronExpression cronExpression = new CronExpression("0 0 12 15W * ?");
DateTimeOffset? nextFireTime = cronExpression.GetTimeAfter((DateTimeOffset) new DateTime(2024, 5, 15, 12, 0, 0).ToUniversalTime());
Assert.IsTrue(nextFireTime.Value.Month == 6, $"CronExpression failed");
}
Result is 7/15/2024
Expected behavior
6/14/2024
Additional context
The text was updated successfully, but these errors were encountered: