Fix erroneous build date formatting

This commit is contained in:
Harshavardhana 2015-05-26 02:14:50 -07:00
parent 554a244b47
commit ddfa964025

View File

@ -259,11 +259,11 @@ var BuildDate string
// getBuildDate - // getBuildDate -
func getBuildDate() string { func getBuildDate() string {
if BuildDate == "" { t, _ := time.Parse(time.RFC3339Nano, BuildDate)
if t.IsZero() {
return "" return ""
} }
t, _ := time.Parse(time.RFC3339Nano, BuildDate) return t.Format(time.RFC1123)
return t.String()
} }
// Tries to get os/arch/platform specific information // Tries to get os/arch/platform specific information