fix task for get version lifetime on windows
This commit is contained in:
parent
a589e20856
commit
7e5a25237e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue