-
1. Re: problem with business days for duedate attribute of task
cpob Jul 13, 2006 11:00 AM (in response to amit_verma22)Could you please give more details? What lines did you change and why?
Thanks! -
2. Re: problem with business days for duedate attribute of task
amit_verma22 Jul 14, 2006 4:22 AM (in response to amit_verma22)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 -
3. Re: problem with business days for duedate attribute of task
kukeltje Jul 17, 2006 2:05 PM (in response to amit_verma22)could you file jira issue for this, make a small patch AND adapt the unittest for timers? I'll try to fix it then.
-
4. Re: problem with business days for duedate attribute of task
amit_verma22 Jul 18, 2006 4:08 AM (in response to amit_verma22)Hi Ronald,
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