Skip to content

Commit

Permalink
Resolve containers#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 authored and mheon committed Oct 14, 2020
1 parent cbbfd2f commit 8e7051d
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 8e7051d

Please sign in to comment.