Skip to content

Commit

Permalink
Resolve #7860 - add time.RFC3339Nano into ContainerJSONBase
Browse files Browse the repository at this point in the history
Signed-off-by: 3sky <[email protected]>
  • Loading branch information
3sky committed Oct 12, 2020
1 parent 2587cba commit 1fc64c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/api/handlers/compat/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strconv"
"strings"
"syscall"
"time"

"github.com/containers/podman/v2/libpod"
"github.com/containers/podman/v2/libpod/define"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1fc64c8

Please sign in to comment.