diff options
author | Vincent Lefevre <vincent@vinc17.net> | 2018-02-08 12:20:02 +0100 |
---|---|---|
committer | Vincent Lefevre <vincent@vinc17.net> | 2018-02-08 12:20:02 +0100 |
commit | 088e1903488a6e35945763563d24f91bb0c5e6f8 (patch) | |
tree | e4554632cbb9f85076479e151eea6e78accb70f6 /mkreldate.sh | |
parent | 02d571c2f55b2c14c7383c5e89901ccbb2b977cb (diff) |
Change mkreldate.sh to use the UTC date with git, so that it is increasing.
Diffstat (limited to 'mkreldate.sh')
-rwxr-xr-x | mkreldate.sh | 2 |
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 |