Commit c437436c authored by Jérome Perrin's avatar Jérome Perrin

fixup! update gantt widget to support capacity project

gantt duration are by hour, but this project is by day
parent 3e1b8dcd
......@@ -502,7 +502,7 @@
var entrance_date = new Date(start_date.getTime());
entrance_date.setTime(entrance_date.getTime() + schedule['entranceTime']*1000*3600);
if (schedule['exitTime']) {
duration = (schedule['exitTime'] - schedule['entranceTime']);
duration = 24 * (schedule['exitTime'] - schedule['entranceTime']);
} else {
if (obj['results']['schedule'][i + 1]) {
duration = obj['results']['schedule'][i + 1]['entranceTime'] - schedule['entranceTime'];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment