I have JSON Data loaded from server and the loaded data contains start_date and end_date and it is a type “milestone”. But when it displayed in the gantt date changes and incremented by 1 day.
gantt.attachEvent("onTaskLoading", function(task){
console.log(task.start_date)
console.log(task.end_date)
console.log(task);
return true;
});
When I console the data it shows different data;
The first 2 console outputs the following
and the last console to print the whole task shows;
The data for start_date and end_date are different here.
How can I resolve this?