Skip to content

Commit

Permalink
Fix build date layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rkfg committed Dec 19, 2020
1 parent ce2ee99 commit f651120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func build(cfg buildConfig, versionFlags string, wg *sync.WaitGroup) {
}

func versionFlags() string {
date := time.Now().Format("01-02-2006 15:04:05 -0700 MST")
date := time.Now().Format("02.01.2006 15:04:05 -0700 MST")
result := fmt.Sprintf(`-X "main.date=%s"`, date)
version := ""
if tag, err := exec.Command("git", "tag", "--contains", "HEAD").Output(); err == nil && string(tag) != "" {
Expand Down

0 comments on commit f651120

Please sign in to comment.