fix: los angeles time for joined at in detail pane
This commit is contained in:
+9
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user