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 -
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