]> granicus.if.org Git - mutt/commitdiff
Change mkreldate.sh to use the UTC date with git, so that it is increasing.
authorVincent Lefevre <vincent@vinc17.net>
Thu, 8 Feb 2018 11:20:02 +0000 (12:20 +0100)
committerVincent Lefevre <vincent@vinc17.net>
Thu, 8 Feb 2018 11:20:02 +0000 (12:20 +0100)
mkreldate.sh

index ac11538901210636cd424e03ab162ada9182b159..121363ea0071e390c6758e9a7b15fb36d91bdb53 100755 (executable)
@@ -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