1
0
Fork 0

Merge pull request #2347 from Magnetic-coop/fix_2346

Change date format when getting log from mercurial
pull/2341/merge
Jordi Boggiano 2013-10-18 08:17:47 -07:00
commit bfc234574f
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class HgDriver extends VcsDriver
$composer = JsonFile::parseJson($composer, $identifier);
if (!isset($composer['time'])) {
$this->process->execute(sprintf('hg log --template "{date|rfc822date}" -r %s', escapeshellarg($identifier)), $output, $this->repoDir);
$this->process->execute(sprintf('hg log --template "{date|rfc3339date}" -r %s', escapeshellarg($identifier)), $output, $this->repoDir);
$date = new \DateTime(trim($output), new \DateTimeZone('UTC'));
$composer['time'] = $date->format('Y-m-d H:i:s');
}