Merge pull request #2347 from Magnetic-coop/fix_2346
Change date format when getting log from mercurialpull/2341/merge
commit
bfc234574f
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue