From a7395055afbd41f041ed2ad327e93d7a41e4b331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20L=C3=B3pez=20Guevara?= Date: Fri, 30 Jan 2026 20:13:15 -0300 Subject: [PATCH] fix(time-format): avoid displaying "0m ago"; show weeks instead (#235) --- src/hooks/useLocale.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useLocale.ts b/src/hooks/useLocale.ts index f7b7fce..b91b5d3 100644 --- a/src/hooks/useLocale.ts +++ b/src/hooks/useLocale.ts @@ -84,7 +84,7 @@ export function formatTimestamp( if (minutes < 60) return `${minutes}m ago`; if (hours < 24) return `${hours}h ago`; if (days < 7) return `${days}d ago`; - if (weeks < 4) return `${weeks}w ago`; + if (weeks < 4 || months == 0) return `${weeks}w ago`; if (months < 12) return `${months}mo ago`; return `${years}y ago`; }