[FIX] web_timeline: date_delay = date_stop - date_start

This commit is contained in:
Henrik Norlin
2023-08-31 10:25:06 +02:00
parent 28b6d1cfda
commit c253255e9e

View File

@@ -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;