utils: fix fromNow date
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/672/head
parent
8899021c96
commit
3008647ee5
|
@ -60,6 +60,7 @@ export function getFromNowStr(date: Date) {
|
||||||
const text =
|
const text =
|
||||||
DateTime.fromJSDate(date).toRelative({
|
DateTime.fromJSDate(date).toRelative({
|
||||||
locale: getCanonicalLocale(),
|
locale: getCanonicalLocale(),
|
||||||
|
padding: 10 * 24 * 60 * 60 * 1000, // 10 days
|
||||||
}) ?? 'Unknown';
|
}) ?? 'Unknown';
|
||||||
|
|
||||||
// Title case
|
// Title case
|
||||||
|
|
Loading…
Reference in New Issue