At first you need to set a hour scale for correct displaying tasks.
Also by default all tasks have start time “00:00”. After loading page, tasks displays according to this time. And after moving task takes a new position according to work time.
This sample can help you to understand what’s happening: docs.dhtmlx.com/gantt/snippet/9732817d
For solving the issue, you could set required start time for tasks.