fix: allow future dates with RelativeDate.svelte

This commit is contained in:
Xylight committed 2025-11-14 13:48:07 -08:00
1 parent edb47b586f
commit b49ea4e262
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@
]
for (let i = thresholds.length - 1; i >= 0; i--) {
if (diffInMillis >= thresholds[i].threshold) {
if (Math.abs(diffInMillis) >= thresholds[i].threshold) {
const value = Math.round(diffInMillis / thresholds[i].threshold)
let language = locale ?? 'en'