diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-18 17:02:03 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-18 17:02:03 -0400 |
| commit | 4720252ba5e1e981c8f78a3e57a36003b91ce82d (patch) | |
| tree | bcece4b38787442d846873dfab31df049fdba77b /www/js/EventModalCtrl.js | |
| parent | d4b661cd78db1b7cdc2b7174f8f254b4f5605a9c (diff) | |
#353 - more updates - need to check how it behaves with Montage Ctrl
Former-commit-id: 1e61637ba0bc6897b5c7d08c7a04c1243766f8d4
Diffstat (limited to 'www/js/EventModalCtrl.js')
| -rw-r--r-- | www/js/EventModalCtrl.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index d91986aa..37b41548 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -1169,7 +1169,10 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro function humanizeTime(str) { - return moment(str).fromNow(); + if (NVRDataModel.getLogin().useLocalTimeZone) + return moment.tz(str, NVRDataModel.getTimeZoneNow()).fromNow(); + else + return moment(str).fromNow(); } |
