1
0
Fork 0

Fix auto-date parsing in GitDriver

pull/104/merge
Jordi Boggiano 2011-11-15 11:53:26 +01:00
parent b350dda0fe
commit 1fd9174c0d
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class GitDriver implements VcsDriverInterface
$composer = JsonFile::parseJson($composer);
if (!isset($composer['time'])) {
exec(sprintf('cd %s && git log -1 --format=\'%%at\' %s', escapeshellarg($this->tmpDir), escapeshellarg($identifier)), $output);
exec(sprintf('cd %s && git log -1 --format=%%at %s', escapeshellarg($this->tmpDir), escapeshellarg($identifier)), $output);
$date = new \DateTime('@'.$output[0]);
$composer['time'] = $date->format('Y-m-d H:i:s');
}