summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-12 06:53:40 -0400
committerGitHub <noreply@github.com>2020-10-12 06:53:40 -0400
commitdce30de594c6206659104a1208f4012a32a82bdc (patch)
tree63a641adb0e6bb40d365fdb1ea9099e52f40e7a1 /pkg
parent717177a8df9fa4bcd4b9c5a3c46f7968a01b115f (diff)
parent1fc64c8a5acdabfc08da29d45109085c3135df30 (diff)
downloadpodman-dce30de594c6206659104a1208f4012a32a82bdc.tar.gz
podman-dce30de594c6206659104a1208f4012a32a82bdc.tar.bz2
podman-dce30de594c6206659104a1208f4012a32a82bdc.zip
Merge pull request #7980 from 3sky/compatibility-api-timestamp
Resolve #7860 - add time.RFC3339 format
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/compat/containers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers.go b/pkg/api/handlers/compat/containers.go
index 48ecfff5d..cae8f88fd 100644
--- a/pkg/api/handlers/compat/containers.go
+++ b/pkg/api/handlers/compat/containers.go
@@ -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,