Browse Source

#860qn16f0 duration fixed

pull/1/head
Wahyu Ramadhan 2 years ago
parent
commit
fffba9fc8d
  1. 4
      edit-mode/function/restActivityLink.js

4
edit-mode/function/restActivityLink.js

@ -89,9 +89,9 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) {
if(entity=="task"){
// let startDate = moment(data.start_date, "YYYY-MM-DD").subtract(1, "days");
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");
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){
gantt.alert({

Loading…
Cancel
Save