Browse Source

Merge pull request 'activity add default start date' (#57) from dev-wahyu into staging

Reviewed-on: ordo/adw-gantt#57
pull/1/head
farhantock 1 year ago
parent
commit
1dde5870ab
  1. 3
      edit-mode/function/restActivityLink.js

3
edit-mode/function/restActivityLink.js

@ -134,7 +134,8 @@ var dp = gantt.createDataProcessor(function (entity, action, data, id) {
if (entity == "task") { if (entity == "task") {
data['proyek_id'] = proyekId; data['proyek_id'] = proyekId;
//TODO : Possible end date bug //TODO : Possible end date bug
data['start_date'] = `${data.start_date}+07`; let startDate = moment(data.start_date, "YYYY-MM-DD");
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";
let newDuration = gantt.calculateDuration({ let newDuration = gantt.calculateDuration({

Loading…
Cancel
Save