Could you please give more details? What lines did you change and why?
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
could you file jira issue for this, make a small patch AND adapt the unittest for timers? I'll try to fix it then.
I have created a jira issue-697 for this and attached file DayPart.java and BusinessCalendarTest.java.
The BusinessCalendarTest file contains a new method "testBusinessDurationAdditionOverWeekendBreakFixForDayPartAddMethod"
to test the said issue