Skip to content

Commit c015b87

Browse files
alfredorubin96BennuFire
authored andcommitted
Revert "fixing gantt chart, new driver version was returning {low,high} numbers"
This reverts commit 4eb9285.
1 parent b3e6a63 commit c015b87

File tree

1 file changed

+3
-5
lines changed
  • src/extensions/advancedcharts/chart/gantt

1 file changed

+3
-5
lines changed

src/extensions/advancedcharts/chart/gantt/Utils.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { toNumber } from '../../../../chart/ChartUtils';
21
import { buildGraphVisualizationObjectFromRecords } from '../../../../chart/graph/util/RecordUtils';
32
import date_utils from './frappe/lib/date_utils';
43

@@ -98,9 +97,9 @@ export function createTasksList(
9897
return undefined;
9998
}
10099
}
101-
let res = {
102-
start: new Date(toNumber(neoStartDate.year), toNumber(neoStartDate.month), toNumber(neoStartDate.day)),
103-
end: new Date(toNumber(neoEndDate.year), toNumber(neoEndDate.month), toNumber(neoEndDate.day)),
100+
return {
101+
start: new Date(neoStartDate.year, neoStartDate.month, neoStartDate.day),
102+
end: new Date(neoEndDate.year, neoEndDate.month, neoEndDate.day),
104103
name: name || '(undefined)',
105104
labels: n.labels,
106105
dependencies: dependencies[n.id],
@@ -113,7 +112,6 @@ export function createTasksList(
113112
isDisabled: true,
114113
styles: { progressColor: '#ffbb54', progressSelectedColor: '#ff9e0d' },
115114
};
116-
return res;
117115
})
118116
.filter((i) => i !== undefined);
119117
}

0 commit comments

Comments
 (0)