diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-12-03 08:53:51 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-12-03 08:53:51 -0500 |
| commit | 38dc473ddd6494ad5b60062b757f8d11009a7886 (patch) | |
| tree | d01f9a7d7bf6fa49db2512e69b6c880d79392c3e /www/js/NewsCtrl.js | |
| parent | 89ade3c9f048bbda108948d89de3c2b9c0d4a0ed (diff) | |
fixed blog check date and also internationlized "new post" text
Diffstat (limited to 'www/js/NewsCtrl.js')
| -rw-r--r-- | www/js/NewsCtrl.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/NewsCtrl.js b/www/js/NewsCtrl.js index 39782226..f6709320 100644 --- a/www/js/NewsCtrl.js +++ b/www/js/NewsCtrl.js @@ -58,7 +58,7 @@ angular.module('zmApp.controllers').controller('zmApp.NewsCtrl', ['$scope', '$ro var mItemDate = moment(itemdate); //var unread = mItemDate.diff(mLastDate) >0) ? true:false; //console.log (unread); - return (mItemDate.diff(mLastDate) > 0) ? true : false; + return (mItemDate.diff(mLastDate, 'seconds') > 0) ? true : false; }; @@ -80,7 +80,7 @@ angular.module('zmApp.controllers').controller('zmApp.NewsCtrl', ['$scope', '$ro var mLastDate = moment(lastDate); var mItemDate = moment(itemdate); - if (mItemDate.diff(mLastDate) > 0) + if (mItemDate.diff(mLastDate, 'seconds') > 0) { NVRDataModel.debug("Updating lastDate to this post"); |
