Date bug fix

This commit is contained in:
Dennis Eichhorn 2016-05-27 15:11:12 +02:00
parent ff4881d7fa
commit 75991ad800

View File

@ -632,11 +632,11 @@ class Repository
$author = explode(':', $lines[1]);
$author = explode('<', trim($author[1]));
$date = explode(':', $lines[2]);
$date = substr($lines[2], 6);
$commit = new Commit($matches[0]);
$commit->setAuthor(new Author(trim($author[0]), rtrim($author[1], '>')));
$commit->setDate(new \DateTime(trim($date[1])));
$commit->setDate(new \DateTime(trim($date)));
$commit->setMessage($lines[3]);
$commit->setTag(new Tag());
$commit->setRepository($this);