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.
This commit is contained in:
Patric Stout 2020-01-26 21:58:49 +01:00 committed by Charles Pigott
parent 791eaedb64
commit a38122e6f2
1 changed files with 1 additions and 1 deletions

View File

@ -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