From 27863f4aee23974ff7d438e16c6e15cf94954348 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Fri, 9 Jun 2023 08:12:19 +0700 Subject: [PATCH] Fix successor date and duration --- edit-mode/function/ganttEvent.js | 1 - 1 file changed, 1 deletion(-) diff --git a/edit-mode/function/ganttEvent.js b/edit-mode/function/ganttEvent.js index d334658..6572b34 100644 --- a/edit-mode/function/ganttEvent.js +++ b/edit-mode/function/ganttEvent.js @@ -53,7 +53,6 @@ gantt.attachEvent("onBeforeTaskUpdate", function(id,new_item){ } progress = progress/100; new_item['progress'] = progress; - new_item['start_date'].setHours(0,0,0); new_item['end_date'].setHours(23,59,59); let newDuration = gantt.calculateDuration({ start_date: new_item['start_date'],