diff --git a/src/lib/ui/util/RelativeDate.svelte b/src/lib/ui/util/RelativeDate.svelte index 3ec071fb..4776cbd1 100644 --- a/src/lib/ui/util/RelativeDate.svelte +++ b/src/lib/ui/util/RelativeDate.svelte @@ -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'