1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Merge pull request #1520 from roma0104/master

Update the sameday and eachday filter to accept TW5 date strings.
This commit is contained in:
Jeremy Ruston 2015-04-06 17:40:32 +01:00
commit 13a5e8f31c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}
}