summaryrefslogtreecommitdiff
path: root/azure-pipelines
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2020-01-26 21:58:49 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-01-26 21:11:47 +0000
commita38122e6f21374440f5d644b5d54b94ebfac4300 (patch)
tree4b6449f30c953494c036d0d83f8012538c729765 /azure-pipelines
parent791eaedb64e059fefe4a73fe798b1f05f9918f6d (diff)
downloadopenttd-a38122e6f21374440f5d644b5d54b94ebfac4300.tar.xz
Fix: [AzurePipelines] the changelog-generation-script was mixing UTC and non-UTC
'date -u' returns the time in UTC. 'git log' uses local time. In result, when a machine is on for example +0100, it would generate the changelog of 7 days 1 hour, instead of 7 days. This is a silly oversight.
Diffstat (limited to 'azure-pipelines')
-rwxr-xr-xazure-pipelines/changelog.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/azure-pipelines/changelog.sh b/azure-pipelines/changelog.sh
index 8231f6667..ea0da948c 100755
--- a/azure-pipelines/changelog.sh
+++ b/azure-pipelines/changelog.sh
@@ -12,5 +12,5 @@ fi
# In all other cases, show the git log of the last 7 days
revdate=$(git log -1 --pretty=format:"%ci")
-last_week=$(date -u -d "$revdate -7days" +"%Y-%m-%d %H:%M")
+last_week=$(date -d "$revdate -7days" +"%Y-%m-%d %H:%M")
git log --after="${last_week}" --pretty=fuller