client: fix tolerance for future timestamp

This commit is contained in:
Johann150 2022-10-07 09:38:44 +02:00
parent 27cf3c4e05
commit 8311b30b4c
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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;