From 7a41362d903a25717c2ffb118f8bfbe696fcbee5 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 11 May 2014 17:26:48 -0300 Subject: [PATCH] Tagged date is that of the commit, not build --- build.sh | 2 +- cmd/syncthing/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index e19c1762..da8d504a 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ export COPYFILE_DISABLE=true distFiles=(README.md LICENSE) # apart from the binary itself version=$(git describe --always --dirty) -date=$(date +%s) +date=$(git show -s --format=%ct) user=$(whoami) host=$(hostname) host=${host%%.*} diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index cba176fd..250f6bf4 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -41,7 +41,7 @@ func init() { stamp, _ := strconv.Atoi(BuildStamp) BuildDate = time.Unix(int64(stamp), 0) - date := BuildDate.UTC().Format(time.RFC3339) + date := BuildDate.UTC().Format("2006-01-02 15:04:05 MST") LongVersion = fmt.Sprintf("syncthing %s (%s %s-%s) %s@%s %s", Version, runtime.Version(), runtime.GOOS, runtime.GOARCH, BuildUser, BuildHost, date) }