summaryrefslogtreecommitdiff
path: root/www/js/PortalLoginCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-10-18 13:43:24 -0700
committerPliable Pixels <pliablepixels@gmail.com>2016-10-18 13:43:24 -0700
commitd4b661cd78db1b7cdc2b7174f8f254b4f5605a9c (patch)
treebb9ecff8994681f3bd17e497c47f25e2206b573f /www/js/PortalLoginCtrl.js
parent6c3c2a2d3396b5ba85efcc47bb44ac59ff5cd325 (diff)
#353 - inital code (also requires ZM API patch) to support local and server timezones
Former-commit-id: bbee60cc64cb521c0f7d7fc75437a9f427c58b5a
Diffstat (limited to 'www/js/PortalLoginCtrl.js')
-rw-r--r--www/js/PortalLoginCtrl.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js
index 541af937..ac3847f3 100644
--- a/www/js/PortalLoginCtrl.js
+++ b/www/js/PortalLoginCtrl.js
@@ -198,6 +198,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic
{
NVRDataModel.debug("PortalLogin: auth success");
NVRDataModel.getKeyConfigParams(1);
+ NVRDataModel.getTimeZone();
// $state.go("login" ,{"wizard": false});
//login was ok, so get API details
NVRDataModel.getAPIversion()
@@ -248,6 +249,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic
tryLoggingSecondTimeHack()
.then(function success(s) {
NVRDataModel.log("2nd time login hack worked!, nothing to do");
+ NVRDataModel.getTimeZone();
},
function error(e) {
$state.go("login", {