client: fix tolerance for future timestamp
This commit is contained in:
parent
27cf3c4e05
commit
8311b30b4c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue