My code:
Code:
DateFormat format=new SimpleDateFormat("dd.MM.yyyy");
Date start = format.parse("29.03.2012"); // you can set 30.03.2012 or 31...
Trigger trigger = newTrigger().withIdentity("MyTrigger","MyGroup").startAt(start).withSchedule(cronSchedule("0 45 7-19/4 * * ?").build();
It will immediately fire at start!!! Why????????
It should only fire each 4 hours between 7 and 19 at 45 min and not immediately at start. You can try it. How can I preven this????