feat(cli): interpet input dates & print dates as local timezone

This commit is contained in:
Jef Roosens 2022-05-31 12:29:35 +02:00
parent f0565c4168
commit edd71b41c2
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 20 additions and 13 deletions

View file

@ -83,6 +83,7 @@ pub fn (mut d DockerConn) inspect_container(id string) ?ContainerInspect {
mut data := json.decode(ContainerInspect, body)?
// The Docker engine API *should* always return UTC time.
data.state.start_time = time.parse_rfc3339(data.state.start_time_str)?
if data.state.status == 'exited' {