1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00

Merge pull request #159 from goreleaser/ldflags

fixed ldflags time format
This commit is contained in:
Carlos Alexandro Becker 2017-04-10 08:49:49 -03:00 committed by GitHub
commit efd0f42cee

View File

@ -18,7 +18,7 @@ func ldflags(ctx *context.Context) (string, error) {
var data = ldflagsData{
Commit: ctx.Git.Commit,
Version: ctx.Git.CurrentTag,
Date: time.Now().Format("2006-01-02_15:04:05"),
Date: time.Now().UTC().Format(time.RFC3339),
}
var out bytes.Buffer
t, err := template.New("ldflags").Parse(ctx.Config.Build.Ldflags)