diff --git a/core/modules/filters/eachday.js b/core/modules/filters/eachday.js index 350830564..6fdccf879 100644 --- a/core/modules/filters/eachday.js +++ b/core/modules/filters/eachday.js @@ -26,7 +26,7 @@ exports.eachday = function(source,operator,options) { }; source(function(tiddler,title) { if(tiddler && tiddler.fields[fieldName]) { - var value = toDate(tiddler.fields[fieldName]); + var value = toDate($tw.utils.parseDate(tiddler.fields[fieldName])); if(values.indexOf(value) === -1) { values.push(value); results.push(title); diff --git a/core/modules/filters/sameday.js b/core/modules/filters/sameday.js index 478f56c90..e1700d11e 100644 --- a/core/modules/filters/sameday.js +++ b/core/modules/filters/sameday.js @@ -25,7 +25,7 @@ exports.sameday = function(source,operator,options) { }; source(function(tiddler,title) { if(tiddler && tiddler.fields[fieldName]) { - if(isSameDay(tiddler.fields[fieldName])) { + if(isSameDay($tw.utils.parseDate(tiddler.fields[fieldName]))) { results.push(title); } }