From 8c27b5c5458e053c2cc6d3ef01c10df62c91e86f Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Thu, 16 Jan 2025 21:07:56 -0800 Subject: [PATCH] history: make sure started time is shown in current timezone Signed-off-by: Tonis Tiigi --- commands/history/inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/history/inspect.go b/commands/history/inspect.go index 350ee8ad24b7..bdae6123b928 100644 --- a/commands/history/inspect.go +++ b/commands/history/inspect.go @@ -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 {