1
0
Fork 0

Fix unintentional manipulation of release dates

pull/1131/head
Chris Smith 2012-09-21 00:33:27 +01:00
parent 6bd7ca0230
commit 8961c687ee
1 changed files with 1 additions and 2 deletions

View File

@ -136,8 +136,7 @@ class ArrayLoader implements LoaderInterface
if (!empty($config['time'])) {
try {
$date = new \DateTime($config['time']);
$date->setTimezone(new \DateTimeZone('UTC'));
$date = new \DateTime($config['time'], new \DateTimeZone('UTC'));
$package->setReleaseDate($date);
} catch (\Exception $e) {
}