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

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


In this case you could try to validate lightbox and show error.
See article:

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