fixed time parsing when the composer.lock file has an old time format
parent
5dd5332623
commit
ab4e3fbf86
|
@ -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