fix task for get version lifetime on windows

This commit is contained in:
Семенов Иван 2022-08-29 19:15:33 +03:00
parent a589e20856
commit 7e5a25237e
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ function get_inc_game_version()
function get_version_file_lifetime() 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) if($ret != 0)
throw new Exception("git error"); throw new Exception("git error");
$minutes = (time() - strtotime($out[0])) / 60; $minutes = (time() - strtotime($out[0])) / 60;