Merge pull request #1476 from prometheus/beorn7/makefile

Use UTC for build timestamp
This commit is contained in:
Björn Rabenstein 2016-03-08 18:18:54 +01:00
commit eebe077f98

View File

@ -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