feat(cli): interpet input dates & print dates as local timezone
This commit is contained in:
parent
f0565c4168
commit
edd71b41c2
2 changed files with 20 additions and 13 deletions
|
|
@ -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' {
|
||||
|
|
|
|||
Reference in a new issue