diff --git a/ui/src/Components/DateFromNow/index.tsx b/ui/src/Components/DateFromNow/index.tsx index d67a58750..502682f52 100644 --- a/ui/src/Components/DateFromNow/index.tsx +++ b/ui/src/Components/DateFromNow/index.tsx @@ -7,8 +7,8 @@ import formatDistanceToNowStrict from "date-fns/formatDistanceToNowStrict"; const formatLabel = (timestamp: string) => { const ts = parseISO(timestamp); const diff = differenceInSeconds(new Date(), ts); - if (diff > 0 && diff < 60) return "a few seconds ago"; - if (diff < 0 && diff >= -60) return "in a few seconds"; + if (diff > 0 && diff < 45) return "a few seconds ago"; + if (diff < 0 && diff >= -45) return "in a few seconds"; if (diff === 0) return "just now"; return formatDistanceToNowStrict(ts, { addSuffix: true,