min++;
d = new DateTime(d.Year, d.Month, d.Day, d.Hour, min, d.Second,
d.Millisecond);
that raises exceptions when minute was 59 - it merely gets erratically
equal to 60.
Replaced it with
d = d.AddMinutes(1);
and it works, but I'm a little nervous since I may have broken some
deep ideas :)).
The error occured when I made a CronTrigger launch every 5 seconds and
excluded the current day using AnnualCalendar - when GetTimeAfter is
supplied a date like (xx : 59 : 55) it fails.
Thanks,
-Marko