Skip to content
Browse files

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
  • Loading branch information
TrueBrain authored and LordAro committed Jan 26, 2020
1 parent 791eaed commit a38122e6f21374440f5d644b5d54b94ebfac4300
Showing with 1 addition and 1 deletion.
  1. +1 −1 azure-pipelines/
@@ -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

0 comments on commit a38122e

Please sign in to comment.
You can’t perform that action at this time.