diff --git a/src/components/ChatMessage.tsx b/src/components/ChatMessage.tsx index 5922efa..a959444 100644 --- a/src/components/ChatMessage.tsx +++ b/src/components/ChatMessage.tsx @@ -36,6 +36,34 @@ function formatTimestamp(ts: number): string { return `${date.toLocaleDateString(bcp47Locale, { day: 'numeric', month: 'short' })} ${time}`; } +/** Full date+time string for tooltip on hover (e.g. "Friday, February 13, 2026 at 3:39:12 PM") */ +function formatFullTimestamp(ts: number): string { + const bcp47Locale = getBcp47(); + const date = new Date(ts); + return date.toLocaleString(bcp47Locale, { + weekday: 'long', + year: 'numeric', + month: 'long', + day: 'numeric', + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + }); +} + +/** Render a timestamp as a semantic