From 0976faba3fb8c3dabb513e7840ba7e23d95c648b Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 20 Oct 2026 17:29:43 +0100 Subject: [PATCH] CLI: changeset show prints local time Created and Applied were printed in UTC, while history and status print local time. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 3 +++ cmd/jarl/changes.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56cfb2c..0d0b9d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -111,6 +111,9 @@ All notable changes to Jarl are documented here. The format follows "Other views:" when the server was older than the CLI (0.6.1-rc.2 sends the count but not the addresses). It now prints just the count line then. +- `jarl changeset show` printed its Created and Applied times in UTC, + while `jarl history` and `jarl status` print local time. It uses local + time now too. - The statistics' "Busiest times" grid drew hours without data taller than the others (they picked up the page's padding for empty diff --git a/cmd/jarl/changes.go b/cmd/jarl/changes.go index c94d9d1..83772a6 100644 --- a/cmd/jarl/changes.go +++ b/cmd/jarl/changes.go @@ -272,9 +272,9 @@ func changesetCmd() *cobra.Command { return err } return output(cs, func(w io.Writer) { - fmt.Fprintf(w, "Changeset:\t%d (%s)\nDescription:\t%s\nCreated:\t%s by %s via %s\n", cs.ID, cs.Status, cs.Description, cs.CreatedAt.Format("2006-01-02 15:04"), cs.Username, cs.Via) + fmt.Fprintf(w, "Changeset:\t%d (%s)\nDescription:\t%s\nCreated:\t%s by %s via %s\n", cs.ID, cs.Status, cs.Description, cs.CreatedAt.Local().Format("2006-01-02 15:04"), cs.Username, cs.Via) if cs.AppliedAt != nil { - fmt.Fprintf(w, "Applied:\t%s by %s\n", cs.AppliedAt.Format("2006-01-02 15:04"), cs.AppliedBy) + fmt.Fprintf(w, "Applied:\t%s by %s\n", cs.AppliedAt.Local().Format("2006-01-02 15:04"), cs.AppliedBy) } fmt.Fprintln(w, "\n#\tOPERATION") for _, op := range cs.Ops {