Skip to content

Commit af138bf

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

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
@@ -8,7 +8,7 @@ source "${REPO_ROOT}/scripts/common.sh"
88
cd "$REPO_ROOT"
99
version=$(scripts/get_version.sh)
1010
commit_hash=$(git rev-parse --short=8 HEAD)
11-
commit_date=$(git show --format=%ci HEAD | head -n 1 | cut - -b1-10 | sed -e 's/-0?/./' | sed -e 's/-0?/./')
11+
commit_date=$(TZ=UTC git show --quiet --date="format-local:%Y.%-m.%-d" --format="%cd")
1212

1313
# File exists and has zero size -> not a prerelease
1414
if [[ -e prerelease.txt && ! -s prerelease.txt ]]; then

0 commit comments

Comments
 (0)