Looked at it some more and I think "days" operator is not working properly 
anymore. Here is my test, I'm sure it worked 100% before. (To demo all the 
test cases, it needs 13 tiddlers with "due" field set to each day from 
today-6 to today+6.)

```
today:
<<list-links '[days:due[]]'>>
4 days ago:
<<list-links '[days:due[-4]!days:due[-4]]'>>
<<list-links '[days:due[-4]] -[days:due[-3]]'>>
last 5 days:
<<list-links '[days:due[-5]!days:due[-1]sort[due]]'>>
next 5 days:
<<list-links '[!days:due[1]days:due[5]sort[due]]'>>
day before:
<<list-links '[days:due[-2]] -[days:due[-1]]'>>
yesterday:
<<list-links '[days:due[-1]] -[days:due[]] -[!days:due[1]]'>>
yesterday:
<<list-links '[days:due[-1]!days:due[-1]]'>>
tomorrow:
<<list-links '[!days:due[1]days:due[1]]'>>
tomorrow:
<<list-links '[!days:due[1]] -[!days:due[2]]'>>
day after:
<<list-links '[!days:due[2]] -[!days:due[3]]'>>

---
everything:
<<list-links '[!due[]sort[due]]'>>
```

On Sunday, November 4, 2018 at 6:42:46 PM UTC-8, RA wrote:
>
> 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/07b6b84e-3b37-4eaf-bdb4-c820562dc44b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to