summaryrefslogtreecommitdiff
path: root/www/js/NewsCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/NewsCtrl.js')
-rw-r--r--www/js/NewsCtrl.js4
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");