Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
fixes an issue parsing the build time in a binary (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates authored May 30, 2018
1 parent 8f945f6 commit 4297c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buffalo/cmd/build/templates/main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 4297c7d

Please sign in to comment.