Gantt Lightbox - Type: Duration - SetValue

Hello

I am currently trying to manually set the time in an opened Lightbox, basically to correct it because of a no-worktime trigger.

The field is a duration field:
{name: “time”, type: “duration”, map_to: “auto”, single_date: true}

The value I get from gantt.getLightboxSection(‘time’).getValue() is a JSON Object
Object {start_date: Sat Jul 18 2015 12:00:00 GMT+0200 (Mitteleuropäische Sommerzeit), end_date: Wed Jul 29 2015 10:00:00 GMT+0200 (Mitteleuropäische Sommerzeit), duration: 60}

for example.

I am now resetting the start_date to my preferred one, which ends up if a setValue to the current day with duration 1, no matter what. Is there a specific format I have to pass, something I have to calculate manually? I am not seeing it at the moment and weren’t able to find something.

Sorry if the question is obvious but I am thankful for any help.

Thanks in advance

Hello,
we’ve confirmed the issue.
The time and duration controls (that are mapped to several properties of a task object), takes values directly from a task object.
As a workaround for this - try providing an object with start/end/duration as a second argument of setValue method.
See the demo:
docs.dhtmlx.com/gantt/snippet/e69207f0