get_version: force UTC

This commit is contained in:
Andrew Dolgov 2013-04-24 08:56:37 +04:00
parent 6ee0d4b05c
commit 50d4b30b33
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
define('VERSION_STATIC', '1.7.8'); define('VERSION_STATIC', '1.7.8');
function get_version() { function get_version() {
date_default_timezone_set('UTC');
$root_dir = dirname(dirname(__FILE__)); $root_dir = dirname(dirname(__FILE__));
if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/ORIG_HEAD")) { if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/ORIG_HEAD")) {