Page 1 of 1

The duration value is incorrect in some cases(ExtGantt 6.1.13)

Posted: Wed Jul 21, 2021 3:53 am
by stoneyuan666

The normal working hours of the Calendar are (8:00-12:00 13:00-17:00). There is an abnormal working day record in the Calendar, and its working hours are (8:00-16:00).When you add a normal Task to ExtGantt, change its start date to an exceptional working day, and then change its end date to the date of any other normal working day.This will result in the selection of a normal workday whose end date is at 16:00 instead of 17:00. Causes an error in the duration value calculation. The ExtGantt version is 6.1.13


Re: The duration value is incorrect in some cases(ExtGantt 6.1.13)

Posted: Wed Jul 21, 2021 6:10 am
by arcady

Please provide a runnable test case or a dataset allowing us to reproduce the problem.


Re: The duration value is incorrect in some cases(ExtGantt 6.1.13)

Posted: Wed Jul 21, 2021 7:43 am
by arcady

Actually no need I've managed to reproduce it. Thing is date field applies time of the last provided value in case it uses a format w/o time info.
I'll make a feature request to snap to the chosen date working time end in such cases.
Here it is: https://app.assembla.com/spaces/bryntum/tickets/9660-end-date-field-should-snap-to-the-working-time-end/details


Re: The duration value is incorrect in some cases(ExtGantt 6.1.13)

Posted: Wed Jul 21, 2021 8:55 am
by stoneyuan666

When setting keepTime to false, the end date is incorrect in terms of hours. In fact, I wanted the end date to be 5pm July 22nd 2021 on a normal business day, but with keepTime set to false, the end date would be 0:00pm July 22nd 2021.It doesn't meet my needs.


Re: The duration value is incorrect in some cases(ExtGantt 6.1.13)

Posted: Wed Jul 21, 2021 10:13 am
by arcady

Yes I've made above feature request for that.