From fffba9fc8d8559331bc85575b4a3fad41a8b1b52 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Wed, 26 Apr 2023 11:18:46 +0700 Subject: [PATCH] #860qn16f0 duration fixed --- edit-mode/function/restActivityLink.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit-mode/function/restActivityLink.js b/edit-mode/function/restActivityLink.js index 4d6991f..e80a689 100644 --- a/edit-mode/function/restActivityLink.js +++ b/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({