It's not a glitch. `days:due[1]days:due[-1]` is the intersection of 
"tomorrow and anything older" and "yesterday and anything newer". Today is 
just `days:due[0]`. Now please have a look at this issue 
https://github.com/Jermolene/TiddlyWiki5/issues/2061 
and you'll realize that this filter is of limited usability because of how 
TW handles dates. `days:due[0]` shows tiddlers that are due "today in UTC". 
For me in PST, that means at 5PM it starts returning tomorrow's date as 
"today". This shift applies to `days:due[1]days:due[-1]` as well, and any 
other use of `days` filter.

On Sunday, November 4, 2018 at 5:48:12 PM UTC-8, Dave wrote:
>
> Just for reference, here is an Agenda based on the days operator that 
> *mostly* works
>
> <ul>
>   <$list filter="[has[due]days:due[60]days:due[-60]!sort[due]]">
>     <li>
>       <$link><$view field="title"/></$link>
>          <$list filter="[<currentTiddler>days:due[15]!days:due[2]]"> 
> @@color:beige;^^upcoming^^@@</$list>
>          <$list filter="[<currentTiddler>days:due[1]days:due[-1]]"> 
> @@color:red;^^today^^@@</$list>
>          <$list filter="[<currentTiddler>days:due[-7]!days:due[-2]]"> 
> @@color:black;^^recent^^@@</$list>
>          <$list filter="[<currentTiddler>days:due[-60]!days:due[-30]]"> 
> @@color:yellow;^^over a month^^@@</$list>
>     </li>
>   </$list>
> </ul>
> This lists all the tiddlers that have 20181104 type dates in the "due" 
> field.  The only glitch is that it includes tomorrow and today as  "today" 
> in the labelling.  I tried days:due[0]days:due[0]] but that didn't work.
>
> It lists all tiddlers with a due date 2 months into the future and past.
>
> see attached pic
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d29c6d0f-b4cf-4577-b950-1ac42aaee0d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to