Skip to content

Commit

Permalink
history: make sure started time is shown in current timezone
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Jan 17, 2025
1 parent f7594d4 commit 8c27b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/history/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func runInspect(ctx context.Context, dockerCli command.Cli, opts inspectOptions)

tw = tabwriter.NewWriter(dockerCli.Out(), 1, 8, 1, '\t', 0)

fmt.Fprintf(tw, "Started:\t%s\n", rec.CreatedAt.AsTime().Format("2006-01-02 15:04:05"))
fmt.Fprintf(tw, "Started:\t%s\n", rec.CreatedAt.AsTime().Local().Format("2006-01-02 15:04:05"))
var duration time.Duration
var statusStr string
if rec.CompletedAt != nil {
Expand Down

0 comments on commit 8c27b5c

Please sign in to comment.