From a86cfe2663ad56110dda8996fc4d81b2c6c04845 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 5 Jul 2015 18:09:35 +0100 Subject: [PATCH] Minor coding style tweaks --- core/modules/filters/recent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/filters/recent.js b/core/modules/filters/recent.js index 3a0e9baa0..897847d00 100644 --- a/core/modules/filters/recent.js +++ b/core/modules/filters/recent.js @@ -18,8 +18,8 @@ Export our filter function exports.recent = function(source,operator,options) { var results = [], fieldName = operator.suffix || "modified", - targetTimeStamp = (new Date()).setHours(0,0,0,0) - 1000*60*60*24*(parseInt(operator.operand,10)||0); - var isRecent = function(dateField) { + targetTimeStamp = (new Date()).setHours(0,0,0,0) - 1000*60*60*24*(parseInt(operator.operand,10) || 0), + isRecent = function(dateField) { return targetTimeStamp <= (new Date(dateField)).setHours(0,0,0,0); }; source(function(tiddler,title) {