Skip to content

Commit 8c27b5c

Browse files
committed
history: make sure started time is shown in current timezone
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
1 parent f7594d4 commit 8c27b5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/history/inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func runInspect(ctx context.Context, dockerCli command.Cli, opts inspectOptions)
193193

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

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

0 commit comments

Comments
 (0)