From 0afb53dc17c0f41ad44daeff848da0e11fb8b2c8 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 13 Jun 2019 13:35:02 +0200 Subject: [PATCH] fix in time comparison while validating events --- pandora_console/include/javascript/pandora_events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js index feeb355788..18d2e1c6b5 100644 --- a/pandora_console/include/javascript/pandora_events.js +++ b/pandora_console/include/javascript/pandora_events.js @@ -691,7 +691,7 @@ function update_event(table, id_evento, type, row) { }, success: function() { var t2 = new Date(); - var diff_g = t1.getTime() - t2.getTime(); + var diff_g = t2.getTime() - t1.getTime(); var diff_s = diff_g / 1000; // If operation takes less than 2 seconds, redraw.