Merge pull request #1598 from fabpot/package-time-fix
fixed time parsing when the composer.lock file has an old time formatpull/1600/merge
commit
b7cd971b06
|
@ -135,8 +135,10 @@ class ArrayLoader implements LoaderInterface
|
|||
}
|
||||
|
||||
if (!empty($config['time'])) {
|
||||
$time = ctype_digit($config['time']) ? '@'.$config['time'] : $config['time'];
|
||||
|
||||
try {
|
||||
$date = new \DateTime($config['time'], new \DateTimeZone('UTC'));
|
||||
$date = new \DateTime($time, new \DateTimeZone('UTC'));
|
||||
$package->setReleaseDate($date);
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue