mirror of
https://github.com/containers/podman.git
synced 2025-11-02 06:37:09 +08:00
Merge pull request #7980 from 3sky/compatibility-api-timestamp
Resolve #7860 - add time.RFC3339 format
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/containers/podman/v2/libpod"
|
"github.com/containers/podman/v2/libpod"
|
||||||
"github.com/containers/podman/v2/libpod/define"
|
"github.com/containers/podman/v2/libpod/define"
|
||||||
@ -316,7 +317,7 @@ func LibpodToContainerJSON(l *libpod.Container, sz bool) (*types.ContainerJSON,
|
|||||||
|
|
||||||
cb := types.ContainerJSONBase{
|
cb := types.ContainerJSONBase{
|
||||||
ID: l.ID(),
|
ID: l.ID(),
|
||||||
Created: l.CreatedTime().String(),
|
Created: l.CreatedTime().Format(time.RFC3339Nano),
|
||||||
Path: "",
|
Path: "",
|
||||||
Args: nil,
|
Args: nil,
|
||||||
State: &state,
|
State: &state,
|
||||||
|
|||||||
Reference in New Issue
Block a user