From 9eec82fead4eaf1f37a2ceaf84d1f917f69e7cc1 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 22 Jul 2019 23:43:53 +0200 Subject: [PATCH] Get DTS in UTC as Marcel proposed. --- tools/update_buildinfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/update_buildinfo.sh b/tools/update_buildinfo.sh index 19aed018..5b2f1b7c 100755 --- a/tools/update_buildinfo.sh +++ b/tools/update_buildinfo.sh @@ -7,7 +7,7 @@ BUILD_DATE="$(date "+%Y-%m-%d %H:%M")" COMMIT_ID="$(git rev-parse HEAD)" BRANCH="$(git rev-parse --abbrev-ref HEAD | sed -r 's/[\/\\]+/_/g')" RELEASE="$(git describe --tags --long | sed -r 's/(.*)-(.*)-.*/\1 +\2/g' | sed 's/ +0$//')" -RELEASE_DTS=$(git show -s --format=%cd --date=format:"%Y%m%d%H%M" HEAD) +RELEASE_DTS=$(TZ=UTC git show --quiet --date=format-local:"%Y%m%d%H%M" --format="%cd" HEAD) MODULES=$(awk '/^[ \t]*#define LUA_USE_MODULES/{modules=modules sep tolower(substr($2,17));sep=","}END{if(length(modules)==0)modules="-";print modules}' $USER_MODULES_H | tr -d '\r')