From 8311b30b4c339e54dd493d272b295e990679d8ab Mon Sep 17 00:00:00 2001 From: Johann150 Date: Fri, 7 Oct 2022 09:38:44 +0200 Subject: [PATCH] client: fix tolerance for future timestamp --- packages/client/src/components/global/time.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/global/time.vue b/packages/client/src/components/global/time.vue index 1d1366068..f7254308c 100644 --- a/packages/client/src/components/global/time.vue +++ b/packages/client/src/components/global/time.vue @@ -58,7 +58,7 @@ const relative = $computed(() => { } } - if (ago >= -5) { + if (ago >= -5 * SECOND) { if (props.format === 'date') { // this is also the catch-all for the formats with hour/minute/second precision return i18n.ts.today;