Loosen recent filter when date missing

This commit is contained in:
Your Name 2025-12-30 16:55:32 -05:00
parent c99dc9d8ff
commit 378fd90dcd
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ export function matchesTimeFilter(createdAt, timeFilter) {
if (timeFilter === "PAST") return true;
const d = parseCreatedAt(createdAt);
if (!d) return false;
if (!d) {
return timeFilter !== "NOW";
}
const now = Date.now();
const diffMs = now - d.getTime();