Issue Details (XML | Word | Printable)

Key: QRTZNET-31
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Marko Lahma
Reporter: Sean Coppinger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Quartz.NET

CronExpression GetTimeAfter() fails with System.ArgumentOutOfRangeException

Created: 02/Aug/07 04:20 AM   Updated: 30/Jan/08 04:00 PM
Component/s: Core
Affects Version/s: 0.5
Fix Version/s: 0.6

Environment: Windows XP, C# 2.0
Issue Links:
Duplicate
 


 Description  « Hide
To reproduce, create the following test case:

[Test]
public void TestGetTimeAfter() {

    CronExpression cronExpression = new CronExpression("0/10 * * * * ?");
    DateTime afterTime = new DateTime(2007, 08, 02, 8, 59, 51);

}

This fails on line 1383. It is trying to create a date with the minutes set to 60 (seconds have been rolled to 0). Need to check and increment the hour accordingly....

if(min == 60) {
   int hour = d.hour + 1;
}


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Marko Lahma added a comment - 02/Aug/07 04:48 AM
This is actually a duplicate of issue QRTZNET-20 and it has been already fixed in the trunk. Hopefully I will be able to soon release 0.6 which contains this and some other goodies.

Marko Lahma added a comment - 04/Aug/07 08:30 AM
I just released Quartz 0.6 which contains fix to this bug. Just to let you know.