File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/extensions/advancedcharts/chart/gantt Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { toNumber } from '../../../../chart/ChartUtils' ;
1
2
import { buildGraphVisualizationObjectFromRecords } from '../../../../chart/graph/util/RecordUtils' ;
2
3
import date_utils from './frappe/lib/date_utils' ;
3
4
@@ -97,9 +98,9 @@ export function createTasksList(
97
98
return undefined ;
98
99
}
99
100
}
100
- return {
101
- start : new Date ( neoStartDate . year , neoStartDate . month , neoStartDate . day ) ,
102
- end : new Date ( neoEndDate . year , neoEndDate . month , neoEndDate . day ) ,
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 ) ) ,
103
104
name : name || '(undefined)' ,
104
105
labels : n . labels ,
105
106
dependencies : dependencies [ n . id ] ,
@@ -112,6 +113,7 @@ export function createTasksList(
112
113
isDisabled : true ,
113
114
styles : { progressColor : '#ffbb54' , progressSelectedColor : '#ff9e0d' } ,
114
115
} ;
116
+ return res ;
115
117
} )
116
118
. filter ( ( i ) => i !== undefined ) ;
117
119
}
You can’t perform that action at this time.
0 commit comments