diff --git a/dashboard/static/js/dashboard.js b/dashboard/static/js/dashboard.js index 61f25684..b526f0b6 100644 --- a/dashboard/static/js/dashboard.js +++ b/dashboard/static/js/dashboard.js @@ -3,7 +3,11 @@ angular.module("FICApp", ["ngSanitize", "ngAnimate"]) $scope.events = []; var refreshEvents = function() { // Update times - var now = new Date().getTime(); + var time = angular.fromJson(sessionStorage.time); + var now = Date.now(); + if (time) + now += time.cu - time.he; + now = new Date(now); $scope.events.forEach(function(ev) { ev.since = now - ev.time; });