
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Windows XP, C# 2.0
|
|
Issue Links:
|
Duplicate
|
|
This issue duplicates:
|
|
QRTZNET-20
CronExpression fails when minute is incremented to 60
|
|
|
|
|
|
|
|
|
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;
}
|
|
Description
|
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;
}
|
Show » |
|
QRTZNET-20and 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.