From b2bdccb507c13561fc556f9b7c5a5c51a24a1ab6 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Wed, 28 Nov 2018 15:10:45 -0800 Subject: [PATCH] Javascript fix for unauthenticated case newTimeFormat didn't handle newTimeZone not having been called well. Restore the prior behavior of having called newTimeZone(null), which was apparently good enough. --- ui-src/NVRApplication.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui-src/NVRApplication.js b/ui-src/NVRApplication.js index 3ae2e0c..6132b3b 100644 --- a/ui-src/NVRApplication.js +++ b/ui-src/NVRApplication.js @@ -247,11 +247,10 @@ function updateSession(session) { */ function onReceivedTopLevel(data) { if (data === null) { - data = {cameras: [], session: null}; - } else { - newTimeZone(data.timeZoneName); + data = {cameras: [], session: null, timeZoneName: null}; } + newTimeZone(data.timeZoneName); updateSession(data.session); // Set up controls and values