diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 1b6b5c81..814c87ff 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -70,6 +70,7 @@ angular.module('zmApp.controllers') 'forceNetworkStop':false, 'defaultPushSound': false, 'enableBlog':true, + 'use24hr':false, }; @@ -284,6 +285,13 @@ angular.module('zmApp.controllers') } + if (typeof loginData.use24hr == 'undefined') + { + zmDebug ("use24hr does not exist. Setting to false"); + loginData.use24hr = false; + + } + if (typeof loginData.montageHistoryQuality == 'undefined') { zmDebug ("montageHistoryQuality does not exist. Setting to 50"); @@ -395,7 +403,10 @@ angular.module('zmApp.controllers') }, - + getTimeFormat: function() + { + return (loginData.use24hr ? "HH:mm": "hh:mm a"); + }, //------------------------------------------------------------------ // switches screen to 'always on' or 'auto' |
