Fix formatTimestampRelative for future timestamps

This commit is contained in:
Jon Staab
2026-04-02 15:00:40 -07:00
parent cf14af06e7
commit 00ee93674f
+1 -1
View File
@@ -354,7 +354,7 @@ export const formatTimestampAsTime = (ts: number) => timeFormatter.format(second
*/
export const formatTimestampRelative = (ts: number) => {
let unit
let delta = now() - ts
let delta = Math.abs(now() - ts)
if (delta < int(MINUTE)) {
unit = "second"
} else if (delta < int(HOUR)) {