Commit 132eff5c authored by Jérome Perrin's avatar Jérome Perrin

gantt duration are by hour, but this project is by day

reapply c437436c
parent 78f18ed6
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
entrance_date.setTime(entrance_date.getTime() + entrance_date.setTime(entrance_date.getTime() +
schedule.entranceTime * 1000 * 3600); schedule.entranceTime * 1000 * 3600);
if (schedule.exitTime) { if (schedule.exitTime) {
duration = (schedule.exitTime - schedule.entranceTime); duration = 24 * (schedule.exitTime - schedule.entranceTime);
} else { } else {
if (obj.results.schedule[i + 1]) { if (obj.results.schedule[i + 1]) {
duration = obj.results.schedule[i + 1].entranceTime - duration = obj.results.schedule[i + 1].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