From d6225c5231c3b588cb60834d5917a0d0d589cb8b Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sun, 7 Nov 2021 15:58:09 +0200 Subject: [PATCH] build: use utc for build datestamp This helps keep packages built on different machines have the same datestamp, if started on the same time. --- SCYLLA-VERSION-GEN | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCYLLA-VERSION-GEN b/SCYLLA-VERSION-GEN index 4b1d54d..38fd07c 100755 --- a/SCYLLA-VERSION-GEN +++ b/SCYLLA-VERSION-GEN @@ -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