Merge branch 'main' into mono-ui

This commit is contained in:
Xylight authored and GitHub committed 2023-09-03 20:07:29 -07:00
commit 819fde66ab
1 file changed
+4 -1
+4 -1
View File
@@ -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>