Merge branch 'main' into mono-ui
This commit is contained in:
1 file changed
+4
-1
@@ -7,6 +7,7 @@
|
||||
}
|
||||
|
||||
function formatRelativeDate(date: Date) {
|
||||
try {
|
||||
const now = relativeTo?.getTime() ?? Date.now()
|
||||
|
||||
const diffInMillis = now - date.getTime()
|
||||
@@ -35,8 +36,10 @@
|
||||
return rtf.format(-value, thresholds[i].unit as any)
|
||||
}
|
||||
}
|
||||
|
||||
return 'Now'
|
||||
} catch (err) {
|
||||
return 'Now'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user