Skip to content

Commit

Permalink
[FIX] web_timeline: date_delay = date_stop - date_start
Browse files Browse the repository at this point in the history
  • Loading branch information
norlinhenrik committed Aug 31, 2023
1 parent 28b6d1c commit 47590c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_timeline/static/src/js/timeline_controller.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ export default AbstractController.extend({
.utc()
.format("YYYY-MM-DD HH:mm:ss");
}
if (this.date_delay && this.date_start && this.date_stop && item.end) {
default_context["default_".concat(this.date_delay)]
= (moment(item.end) - moment(item.start)) / 3600000;
}
if (item.group > 0) {
default_context["default_".concat(this.renderer.last_group_bys[0])] =
item.group;
Expand Down

0 comments on commit 47590c0

Please sign in to comment.