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.
pull/132/head
Patric Stout 4 years ago committed by Charles Pigott
parent 791eaedb64
commit a38122e6f2

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

Loading…
Cancel
Save