remove luxon dependency in web

This commit is contained in:
Hongbo Wu
2022-04-05 11:17:20 +08:00
committed by Jackson Harper
parent 5eff1c05bf
commit b36e8a78d7

View File

@ -24,7 +24,10 @@ type LibraryFilter =
| 'type:highlights'
| `saved:${string}`
const recentlySavedStartDate = DateTime.now().minus({ days: 7 }).toISODate()
// get last week's date
const recentlySavedStartDate = new Date(
new Date().getTime() - 7 * 24 * 60 * 60 * 1000
).toLocaleDateString('en-US')
const FOCUSED_BOXSHADOW = '0px 0px 2px 2px rgba(255, 234, 159, 0.56)'