mirror of
https://github.com/minio/minio.git
synced 2025-01-14 16:25:01 -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 -
|
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user