Merge pull request #7980 from 3sky/compatibility-api-timestamp

Resolve #7860 - add time.RFC3339 format
This commit is contained in:
OpenShift Merge Robot 2020-10-12 06:53:40 -04:00 committed by GitHub
commit dce30de594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import (
"strconv"
"strings"
"syscall"
"time"
"github.com/containers/podman/v2/libpod"
"github.com/containers/podman/v2/libpod/define"
@ -316,7 +317,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON,
cb := types.ContainerJSONBase{
ID: l.ID(),
Created: l.CreatedTime().String(),
Created: l.CreatedTime().Format(time.RFC3339Nano),
Path: "",
Args: nil,
State: &state,