summaryrefslogtreecommitdiffstats
path: root/mkreldate.sh
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2018-02-08 12:20:02 +0100
committerVincent Lefevre <vincent@vinc17.net>2018-02-08 12:20:02 +0100
commit088e1903488a6e35945763563d24f91bb0c5e6f8 (patch)
treee4554632cbb9f85076479e151eea6e78accb70f6 /mkreldate.sh
parent02d571c2f55b2c14c7383c5e89901ccbb2b977cb (diff)
Change mkreldate.sh to use the UTC date with git, so that it is increasing.
Diffstat (limited to 'mkreldate.sh')
-rwxr-xr-xmkreldate.sh2
1 files changed, 1 insertions, 1 deletions
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