mirror of
https://github.com/minio/minio.git
synced 2025-01-13 07:53:21 -05:00
Fix erroneous build date formatting
This commit is contained in:
parent
554a244b47
commit
ddfa964025
6
main.go
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user