From 9343e054984b72ab1f98ad04ba46b614b52a07e2 Mon Sep 17 00:00:00 2001 From: Mark Anderson Date: Thu, 2 Jun 2022 11:52:30 -0700 Subject: [PATCH] Fix build-date to use UTC Signed-off-by: Mark Anderson --- build-support/functions/10-util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/functions/10-util.sh b/build-support/functions/10-util.sh index 9f8fe6d71e..9b380dcbb1 100644 --- a/build-support/functions/10-util.sh +++ b/build-support/functions/10-util.sh @@ -299,7 +299,7 @@ function git_date { # it's tricky to do an RFC3339 format in a cross platform way, so we hardcode UTC local date_format="%Y-%m-%dT%H:%M:%SZ" # we're using this for build date because it's stable across platform builds - local date="$(git show -s --format=%cd --date=format:"$date_format" HEAD)" || ret=1 + local date="$(TZ=UTC0 git show -s --format=%cd --date=format-local:"$date_format" HEAD)" || ret=1 ##local head="$(git status -b --porcelain=v2 | awk '{if ($1 == "#" && $2 =="branch.head") { print $3 }}')" || ret=1