mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-11 20:35:42 +00:00
"days" filter: yesterday and tomorrow edge cases (#2364)
* Change the negation logic to address an edge case Make it possible to get an interval ending with yesterday or starting with tomorrow. * "days" filter: adjust documentation
This commit is contained in:
committed by
Jeremy Ruston
parent
c33e83f595
commit
19ee5bcf4e
@@ -27,6 +27,7 @@ exports.days = function(source,operator,options) {
|
||||
};
|
||||
|
||||
if(operator.prefix === "!") {
|
||||
targetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign;
|
||||
source(function(tiddler,title) {
|
||||
if(tiddler && tiddler.fields[fieldName]) {
|
||||
if(!isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {
|
||||
|
||||
Reference in New Issue
Block a user