Skip to content

Commit

Permalink
Fix build-date to use UTC
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Anderson <[email protected]>
  • Loading branch information
markan committed Jun 10, 2022
1 parent 19c87be commit 9343e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-support/functions/10-util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9343e05

Please sign in to comment.