From 502b6fa67625ff5f950918f551a8a6df8c01b522 Mon Sep 17 00:00:00 2001 From: Sacha Greif Date: Mon, 22 Oct 2012 14:05:49 +0900 Subject: [PATCH] fix date --- client/views/posts/posts_digest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/views/posts/posts_digest.js b/client/views/posts/posts_digest.js index 65455d78b..85fa2cd13 100644 --- a/client/views/posts/posts_digest.js +++ b/client/views/posts/posts_digest.js @@ -24,7 +24,7 @@ Template.posts_digest.helpers({ }, showNextDate: function(){ var currentDate=moment(sessionGetObject('currentDate')).startOf('day'); - var today=moment(new Date()); + var today=moment(new Date()).startOf('day'); return today.diff(currentDate, 'days') > 0 } });