From 7e5a25237ebe2abeb04a7a9a36f98a2b9a242b44 Mon Sep 17 00:00:00 2001 From: Greysnek Date: Mon, 29 Aug 2022 19:15:33 +0300 Subject: [PATCH] fix task for get version lifetime on windows --- version.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.inc.php b/version.inc.php index ae4714e..6e89f2a 100644 --- a/version.inc.php +++ b/version.inc.php @@ -92,7 +92,7 @@ function get_inc_game_version() function get_version_file_lifetime() { - exec("git log --follow --format=%ad --date=format:'%Y-%m-%d %H:%M:%S' " . get_path_to_version_file() , $out, $ret); + exec("git log --follow --format=%ad --date=format:\"%Y-%m-%d %H:%M:%S\" " . get_path_to_version_file() , $out, $ret); if($ret != 0) throw new Exception("git error"); $minutes = (time() - strtotime($out[0])) / 60;