build: use utc for build datestamp

This helps keep packages built on different machines have the
same datestamp, if started on the same time.
This commit is contained in:
Avi Kivity 2021-11-07 15:58:09 +02:00
parent 48d37f3402
commit d6225c5231

View File

@ -8,7 +8,7 @@ then
SCYLLA_VERSION=$(cat version | awk -F'-' '{print $1}')
SCYLLA_RELEASE=$(cat version | awk -F'-' '{print $2}')
else
DATE=$(date +%Y%m%d)
DATE=$(date --utc +%Y%m%d)
GIT_COMMIT=$(git log --pretty=format:'%h' -n 1)
SCYLLA_VERSION=$VERSION
SCYLLA_RELEASE=$DATE.$GIT_COMMIT