I changed the add method of DayPart class.
I changed the way "dayPartEndDate" object was being created as shown below.

Date dayPartEndDate = new Date(date.getTime() + duration.milliseconds);

has been changed to 

Date dayPartEndDate = new Date(date.getTime() + millisecondsInThisDayPart);

The variable "millisecondsInThisDayPart" represents the duration of dayPart not 
duration.milliseconds, which represent the entire duration scheduled for the 
task


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957998#3957998

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957998
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to