summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/getversion.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/getversion.sh b/util/getversion.sh
index 8b32307a49..811abfdf47 100755
--- a/util/getversion.sh
+++ b/util/getversion.sh
@@ -58,7 +58,7 @@ if [ -n "$dirty" ]; then
echo "/* Repo is dirty, using time of last compilation */"
echo "#define DATE \"$(date '+%F %T')\""
else
- echo "/* Repo is clean, use the author date of the last commit */"
- gitdate=$(git log -1 --format='%ai' HEAD | cut -d ' ' -f '1 2')
+ echo "/* Repo is clean, use the commit date of the last commit */"
+ gitdate=$(git log -1 --format='%ci' HEAD | cut -d ' ' -f '1 2')
echo "#define DATE \"${gitdate}\""
fi