"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:
nameanyone
2016-04-27 17:23:46 +01:00
committed by Jeremy Ruston
parent c33e83f595
commit 19ee5bcf4e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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]))) {