Skip to content

Commit b3043cd

Browse files
committed
create_source_tarball.sh: Use UTC timezone when determining the prerelease date
1 parent d3db12c commit b3043cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/create_source_tarball.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [[ -e prerelease.txt && ! -s prerelease.txt ]]; then
1515
elif [[ -e prerelease.txt ]]; then
1616
version_string="${version}-$(cat prerelease.txt)-${commit_hash}"
1717
else
18-
commit_date=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./')
18+
commit_date=$(TZ=UTC git show --quiet --date="format-local:%Y.%-m.%-d" --format="%cd")
1919
version_string="${version}-nightly-${commit_date}-${commit_hash}"
2020
fi
2121

0 commit comments

Comments
 (0)