fix: los angeles time for joined at in detail pane

This commit is contained in:
talksik
2025-10-28 17:07:52 -07:00
parent b53f418607
commit dadbca4b5f
+9 -1
View File
@@ -420,7 +420,15 @@ func (m model) renderDetails() string {
// Joined At
b.WriteString(detailLabelStyle.Render("Joined: "))
timeAgo := timediff.TimeDiff(human.JoinedAt)
joinedFormatted := human.JoinedAt.Format("Jan 2, 2006 at 3:04 PM")
// Convert to Pacific timezone
loc, err := time.LoadLocation("America/Los_Angeles")
if err != nil {
loc = time.UTC // fallback to UTC if there's an error
}
joinedPacific := human.JoinedAt.In(loc)
joinedFormatted := joinedPacific.Format("Jan 2, 2006 at 3:04 PM MST")
b.WriteString(detailValueStyle.Render(fmt.Sprintf("%s (%s)", joinedFormatted, timeAgo)) + "\n\n")
// Pro Subscription Status