more human readable but standard version timestamp

This commit is contained in:
Jeff Carr 2025-01-18 03:14:41 -06:00
parent b8d0864c37
commit e8f29e593d
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@ func (f *Forge) doBuild(repo *gitpb.Repo, userFlags []string, goWhat string) err
// set standard ldflag options
now := time.Now()
datestamp := now.UTC().Format("2006/01/02_1504_UTC")
// datestamp := now.UTC().Format("2006/01/02_1504_UTC")
datestamp := now.UTC().Format("2006-01-02_15:04:05_UTC") // 2006-01-02 15:04:05 UTC
// log.Info("datestamp =", datestamp)
// add some standard golang flags
ldflags := "-X main.VERSION=" + version + " "