From 17171aecf449c0f0823d7843242d735caaad7739 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 16 May 2020 08:50:58 -0400 Subject: 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 --- cmd/podman/system/version.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cmd/podman/system') 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) } -- cgit v1.2.3-54-g00ecf