utils: fix fromNow date

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/672/head
Varun Patil 2023-05-28 01:05:30 -07:00
parent 8899021c96
commit 3008647ee5
1 changed files with 1 additions and 0 deletions

View File

@ -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