diff options
Diffstat (limited to 'include/version.php')
-rw-r--r-- | include/version.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/version.php b/include/version.php index 4d088a2bb..0e583f9ec 100644 --- a/include/version.php +++ b/include/version.php @@ -7,7 +7,7 @@ if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/ORIG_HEAD")) { - $suffix = date("Ymd", filemtime("$root_dir/.git/ORIG_HEAD")); + $suffix = substr(trim(file_get_contents("$root_dir/.git/ORIG_HEAD")), 0, 7); return VERSION_STATIC . ".$suffix"; } else { |