summaryrefslogtreecommitdiff
path: root/cmd/podman/system
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-05-16 08:50:58 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-05-21 16:31:34 -0400
commit17171aecf449c0f0823d7843242d735caaad7739 (patch)
tree2c1f1055825ee4e3d3d493c510cabc0fddfb720e /cmd/podman/system
parentf6aa620b05a057ca8fb9631b66313c6220de50c2 (diff)
downloadpodman-17171aecf449c0f0823d7843242d735caaad7739.tar.gz
podman-17171aecf449c0f0823d7843242d735caaad7739.tar.bz2
podman-17171aecf449c0f0823d7843242d735caaad7739.zip
Display human build date in podman info
Currently we are displaying the Seconds since EPOCH this will change to displaying date, similar to `podman version` Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/system')
-rw-r--r--cmd/podman/system/version.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd/podman/system/version.go b/cmd/podman/system/version.go
index 50bd81368..b7fa289a5 100644
--- a/cmd/podman/system/version.go
+++ b/cmd/podman/system/version.go
@@ -6,7 +6,6 @@ import (
"os"
"strings"
"text/tabwriter"
- "time"
"github.com/containers/libpod/cmd/podman/registry"
"github.com/containers/libpod/cmd/podman/validate"
@@ -79,10 +78,6 @@ func formatVersion(writer io.Writer, version *define.Version) {
if version.GitCommit != "" {
fmt.Fprintf(writer, "Git Commit:\t%s\n", version.GitCommit)
}
- // Prints out the build time in readable format
- if version.Built != 0 {
- fmt.Fprintf(writer, "Built:\t%s\n", time.Unix(version.Built, 0).Format(time.ANSIC))
- }
-
+ fmt.Fprintf(writer, "Built:\t%s\n", version.BuiltTime)
fmt.Fprintf(writer, "OS/Arch:\t%s\n", version.OsArch)
}