From 8961c687ee3b429633e68f84d35e8ce2efd7f6ba Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Fri, 21 Sep 2012 00:33:27 +0100 Subject: [PATCH] Fix unintentional manipulation of release dates --- src/Composer/Package/Loader/ArrayLoader.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Package/Loader/ArrayLoader.php b/src/Composer/Package/Loader/ArrayLoader.php index 73c43a908..a5464bd00 100644 --- a/src/Composer/Package/Loader/ArrayLoader.php +++ b/src/Composer/Package/Loader/ArrayLoader.php @@ -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) { }