Commit bba5007
committed
fix: show full date in formatTimestamp for non-today timestamps
formatTimestamp rendered any timestamp that wasn't from the current day
as a bare weekday + time (e.g. "Tuesday 10:49 PM"). This made the
"Last login" field in the User Information panel ambiguous: a login from
months — or even over a year — ago was indistinguishable from a recent
one, and no year was ever shown.
Now non-today timestamps include a full date with year
(e.g. "Mar 3, 2026, 10:49 PM"), consistent with how createdAt
(formatTimestampGetDate) and message dates (date-fns) are already shown.
Same-day timestamps still render as time-only.
Closes #13131 parent 8116b22 commit bba5007
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
0 commit comments