From e998699d10fa8d9aff45713ad072d47ea15d99fd Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 20 Jun 2018 12:16:35 -0400 Subject: make sure montage timeNow is updated even if simulStreaming --- www/js/MontageCtrl.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 1f29a253..b2021920 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -603,6 +603,13 @@ angular.module('zmApp.controllers') //----------------------------------------------------------------------- function loadNotifications() { + + if ($scope.iconTimeNow == 'local') + $scope.timeNow = moment().format(NVRDataModel.getTimeFormatSec()); + else + $scope.timeNow = moment().tz(NVRDataModel.getTimeZoneNow()).format(NVRDataModel.getTimeFormatSec()); + + if (simulStreaming) { // console.log ("Skipping timer as simulStreaming"); return; @@ -621,10 +628,7 @@ angular.module('zmApp.controllers') // if you see the time move, montage should move - if ($scope.iconTimeNow == 'local') - $scope.timeNow = moment().format(NVRDataModel.getTimeFormatSec()); - else - $scope.timeNow = moment().tz(NVRDataModel.getTimeZoneNow()).format(NVRDataModel.getTimeFormatSec()); + //$scope.timeNow = moment().format(NVRDataModel.getTimeFormatSec()); //console.log ("Inside Montage timer..."); -- cgit v1.2.3