From 6ba379e2563bfa44b8f2f0570f554dd904004ef4 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Tue, 8 Mar 2016 17:47:17 +0100 Subject: [PATCH] Use UTC for build timestamp --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 6cbe400fa..edf56215e 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -21,7 +21,7 @@ version=$( cat version/VERSION ) revision=$( git rev-parse --short HEAD 2> /dev/null || echo 'unknown' ) branch=$( git rev-parse --abbrev-ref HEAD 2> /dev/null || echo 'unknown' ) host=$( hostname ) -build_date=$( date +%Y%m%d-%H:%M:%S ) +build_date=$( TZ=UTC date +%Y%m%d-%H:%M:%S ) go_version=$( go version | sed -e 's/^[^0-9.]*\([0-9.]*\).*/\1/' ) if [ "$(go env GOOS)" = "windows" ]; then