From 38dc473ddd6494ad5b60062b757f8d11009a7886 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 3 Dec 2016 08:53:51 -0500 Subject: fixed blog check date and also internationlized "new post" text --- www/js/NewsCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/NewsCtrl.js') 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"); -- cgit v1.2.3