From a38122e6f21374440f5d644b5d54b94ebfac4300 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 26 Jan 2020 21:58:49 +0100 Subject: [PATCH] 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. --- azure-pipelines/changelog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/changelog.sh b/azure-pipelines/changelog.sh index 8231f66672..ea0da948c1 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