|
@@ -107,7 +107,7 @@ class HgDriver extends VcsDriver implements VcsDriverInterface
|
|
|
|
|
|
if (!isset($composer['time'])) {
|
|
|
$this->process->execute(sprintf('cd %s && hg log --template "{date|rfc822date}" -r %s', escapeshellarg($this->tmpDir), escapeshellarg($identifier)), $output);
|
|
|
- $date = new \DateTime($output[0]);
|
|
|
+ $date = new \DateTime(trim($output));
|
|
|
$composer['time'] = $date->format('Y-m-d H:i:s');
|
|
|
}
|
|
|
$this->infoCache[$identifier] = $composer;
|