I'm stuck on an issue with the Quartz Scheduler. I tried to ask terracota in their forum but i get no answer ...
I use a Java Quartz and DailyTimeIntervalScheduleBuilder as following
DailyTimeIntervalScheduleBuilder dti = dailyTimeIntervalSchedule()
.startingDailyAt(new TimeOfDay(0, 30))
.endingDailyAt(new TimeOfDay(7, 0))
.onEveryDay()
.withIntervalInHours(2)
.withMisfireHandlingInstructionFireAndProceed();
As you can see, i want the trigger to fire every day between 00:30 and 07:00 every two hours.
On 'normal' days, the trigger fires like this :
Sat Mar 01 00:30:00 CET 2014
Sat Mar 01 02:30:00 CET 2014
Sat Mar 01 04:30:00 CET 2014
But with DST :
Sun Mar 30 00:30:00 CEST 2014
Sun Mar 30 03:30:00 CEST 2014
Sun Mar 30 05:30:00 CEST 2014
I understand why the timestamp calculates for the second firing happens at 03:30 and not at 02:30 but why the trigger don't 're-adjust' the next firing at 04:30 ? Actually i guess it is because
...in spring the clock jumps forward from the last moment of 01:59 standard time to 03:00 DST and that day has 23 hours, whereas in autumn the clock jumps backward from the last moment of 01:59 DST to 01:00 standard time, repeating that hour, and that day has 25 hours.[37] A digital display of local time does not read 02:00 exactly at the shift to summertime, but instead jumps from 01:59:59.9 forward to 03:00:00.0.
Wikipedia
How can i deal to force the trigger to 're-adjust' ?
PS: I want it to fire at 00:30, 03:00, 04:30, ... this day