From 3008647ee5761040cdb8a4c43bb0e940bd73c0ae Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 28 May 2023 01:05:30 -0700 Subject: [PATCH] utils: fix fromNow date Signed-off-by: Varun Patil --- src/services/utils/date.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/utils/date.ts b/src/services/utils/date.ts index e2508873..ceb0a34a 100644 --- a/src/services/utils/date.ts +++ b/src/services/utils/date.ts @@ -60,6 +60,7 @@ export function getFromNowStr(date: Date) { const text = DateTime.fromJSDate(date).toRelative({ locale: getCanonicalLocale(), + padding: 10 * 24 * 60 * 60 * 1000, // 10 days }) ?? 'Unknown'; // Title case