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:
commit
efd0f42cee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user