From 4297c7df1c0cab76257cd53a35905badcc1c4332 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Wed, 30 May 2018 08:04:21 -0400 Subject: [PATCH] fixes an issue parsing the build time in a binary (#1080) --- buffalo/cmd/build/templates/main.go.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffalo/cmd/build/templates/main.go.tmpl b/buffalo/cmd/build/templates/main.go.tmpl index 24e6e3555..45e84f653 100644 --- a/buffalo/cmd/build/templates/main.go.tmpl +++ b/buffalo/cmd/build/templates/main.go.tmpl @@ -27,7 +27,7 @@ var BuildTime = "" func init() { BuildTime = strings.Trim(BuildTime, "\"") - t, err := time.Parse("2006-01-02T15:04:05-07:00", BuildTime) + t, err := time.Parse(time.RFC3339, BuildTime) if err != nil { fmt.Println(err) }