From 0f8ba08af331162417c23aa2577a8afd4a46714e Mon Sep 17 00:00:00 2001 From: Manoj Pawar <185208487+ManojPawar2@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:27:32 +0530 Subject: [PATCH] fix: show unambiguous date for older "Last login" timestamps `formatTimestamp` rendered every non-today timestamp as just a weekday and time (e.g. "Tuesday 10:49 PM"), so a login from 90 days ago looked identical to one from earlier this week with no way to tell them apart. Replace the weekday-only format with an explicit short month, day and year, so older logins now read like "Mar 3, 2026, 10:49 PM". Today's logins keep showing only the time. This also aligns the "Last login" field with how dates are formatted elsewhere in the app (formatTimestampGetDate, Message.js). Closes #1313 --- packages/react/src/lib/formatTimestamp.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react/src/lib/formatTimestamp.js b/packages/react/src/lib/formatTimestamp.js index c9555ff155..7e8a68f5e8 100644 --- a/packages/react/src/lib/formatTimestamp.js +++ b/packages/react/src/lib/formatTimestamp.js @@ -12,8 +12,10 @@ const formatTimestamp = (timestamp) => { return isDifferentDay ? `${date.toLocaleDateString('en-US', { - weekday: 'long', - })} ${formattedTime}` + month: 'short', + day: 'numeric', + year: 'numeric', + })}, ${formattedTime}` : formattedTime; };