auto correct work time when time is used in light box?

Hi ,

When specifying the start and end dates with time if I select a non working day, then the duration of the task is being set to 0 and the dates of the task are not being auto corrected.

How can i do this?

Steps to reproduce:

i) open the below snippet

http://docs.dhtmlx.com/gantt/snippet/7cb0f2e4

ii) change the start and end dates to any of the following dates like april 6,13 or 20 and start time from 7 to end time 19 or 21

All the tasks have 0 duration

Hello.

In this case you could try to validate lightbox and show error.
See article:
docs.dhtmlx.com/gantt/desktop__validation.html

Or you could handle onLightboxSave and correct second argument dates if necessary.
You could use getClosestWorkTime to get work time.
See article:
docs.dhtmlx.com/gantt/api__gantt … ktime.html