From: Vincent Lefevre Date: Thu, 8 Feb 2018 11:20:02 +0000 (+0100) Subject: Change mkreldate.sh to use the UTC date with git, so that it is increasing. X-Git-Tag: mutt-1-10-rel~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=088e1903488a6e35945763563d24f91bb0c5e6f8;p=mutt Change mkreldate.sh to use the UTC date with git, so that it is increasing. --- diff --git a/mkreldate.sh b/mkreldate.sh index ac115389..121363ea 100755 --- a/mkreldate.sh +++ b/mkreldate.sh @@ -3,7 +3,7 @@ # Generates the reldate.h contents from either git or the ChangeLog file if [ -e ".git" ] && command -v git >/dev/null 2>&1; then - reldate=$(git log -1 --date=short --pretty=format:"%cd") + reldate=$(TZ=UTC git log -1 --date=format-local:"%F" --pretty=format:"%cd") else reldate=$(head -n 1 ChangeLog | LC_ALL=C cut -d ' ' -f 1) fi