mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix calculating yesterdays date
This commit is contained in:
parent
20e7490830
commit
119f44dd38
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ export type HomeFeedContainerProps = {
|
|||
const SAVED_SEARCHES: Record<string,string> = {
|
||||
'Inbox': '',
|
||||
'All': 'in:all',
|
||||
'Today': `in:inbox saved:${new Date(new Date().setDate(-1)).toISOString().split('T')[0]}..*`,
|
||||
'Today': `in:inbox saved:${new Date(new Date().getTime() - (24 * 3600000)).toISOString().split('T')[0]}..*`,
|
||||
'Newsletter': `in:inbox label:Newsletter`,
|
||||
'Non-Newsletter': `in:inbox -label:Newsletter`,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue