mirror of
https://github.com/containers/podman.git
synced 2026-10-24 02:39:13 -04:00
Resolve #7860 - add time.RFC3339Nano into ContainerJSONBase
Signed-off-by: 3sky <3sky@protonmail.com>
This commit is contained in:
1 parent
2587cba389
commit
1fc64c8a5a
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user