Skip to content

Commit

Permalink
Merge pull request #7980 from 3sky/compatibility-api-timestamp
Browse files Browse the repository at this point in the history
Resolve #7860 - add time.RFC3339 format
  • Loading branch information
openshift-merge-robot committed Oct 12, 2020
2 parents 717177a + 1fc64c8 commit dce30de
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 dce30de

Please sign in to comment.