Browse Source

fix(query): yesterday should be a date

Fix #4520
Andelf 3 years ago
parent
commit
8eab5753b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/db/query_react.cljs

+ 1 - 1
src/main/frontend/db/query_react.cljs

@@ -24,7 +24,7 @@
     (= :today input)
     (date->int (t/today))
     (= :yesterday input)
-    (date->int (t/yesterday))
+    (date->int (t/minus (t/today) (t/days 1)))
     (= :tomorrow input)
     (date->int (t/plus (t/today) (t/days 1)))
     (= :current-page input)