|
|
@ -89,9 +89,9 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) { |
|
|
|
if(entity=="task"){ |
|
|
|
if(entity=="task"){ |
|
|
|
// let startDate = moment(data.start_date, "YYYY-MM-DD").subtract(1, "days");
|
|
|
|
// let startDate = moment(data.start_date, "YYYY-MM-DD").subtract(1, "days");
|
|
|
|
let startDate = moment(data.start_date, "YYYY-MM-DD"); |
|
|
|
let startDate = moment(data.start_date, "YYYY-MM-DD"); |
|
|
|
data['start_date'] = startDate.format("YYYY-MM-DD")+" 00:00:00+07"; |
|
|
|
// data['start_date'] = startDate.format("YYYY-MM-DD")+" 00:00:00+07";
|
|
|
|
let endDate = moment(data.end_date, "YYYY-MM-DD"); |
|
|
|
let endDate = moment(data.end_date, "YYYY-MM-DD"); |
|
|
|
data['end_date'] = endDate.format("YYYY-MM-DD")+" 23:59:59+07"; |
|
|
|
// data['end_date'] = endDate.format("YYYY-MM-DD")+" 23:59:59+07";
|
|
|
|
|
|
|
|
|
|
|
|
if(startDate > endDate){ |
|
|
|
if(startDate > endDate){ |
|
|
|
gantt.alert({ |
|
|
|
gantt.alert({ |
|
|
|