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 =
|
||||
DateTime.fromJSDate(date).toRelative({
|
||||
locale: getCanonicalLocale(),
|
||||
padding: 10 * 24 * 60 * 60 * 1000, // 10 days
|
||||
}) ?? 'Unknown';
|
||||
|
||||
// Title case
|
||||
|
|
Loading…
Reference in New Issue