diff --git a/main.go b/main.go index bb55f8a76..446bfa847 100644 --- a/main.go +++ b/main.go @@ -259,11 +259,11 @@ var BuildDate string // getBuildDate - func getBuildDate() string { - if BuildDate == "" { + t, _ := time.Parse(time.RFC3339Nano, BuildDate) + if t.IsZero() { return "" } - t, _ := time.Parse(time.RFC3339Nano, BuildDate) - return t.String() + return t.Format(time.RFC1123) } // Tries to get os/arch/platform specific information