feat(tui-go): welcome "recent" list uses the local date, matching the session list
Was the UTC-then-local time-of-day; now the same "Jan 02 15:04" / "Jan 02 2006" shortDateTime as the session list, so a previous-day session isn't shown as if it were today. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -516,7 +516,7 @@ func (m Model) welcomeRows(w int) []string {
|
|||||||
}
|
}
|
||||||
for _, s := range m.sessions[start:] {
|
for _, s := range m.sessions[start:] {
|
||||||
mark := statusGlyph(t, s.Status)
|
mark := statusGlyph(t, s.Status)
|
||||||
rows = append(rows, t.span(" "+s.Name+" ", t.P.Fg)+t.span(formatTime(s.LastEventAt), t.P.Faint)+" "+mark)
|
rows = append(rows, t.span(" "+s.Name+" ", t.P.Fg)+t.span(shortDateTime(s.LastEventAt), t.P.Faint)+" "+mark)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rows
|
return rows
|
||||||
|
|||||||
Reference in New Issue
Block a user