diff --git a/src/Composer/Package/Loader/ArrayLoader.php b/src/Composer/Package/Loader/ArrayLoader.php index 7909316d0..98733372b 100644 --- a/src/Composer/Package/Loader/ArrayLoader.php +++ b/src/Composer/Package/Loader/ArrayLoader.php @@ -90,7 +90,9 @@ class ArrayLoader if (!empty($config['time'])) { try { - $package->setReleaseDate(new \DateTime($config['time'])); + $date = new \DateTime($config['time']); + $date->setTimezone(new \DateTimeZone('UTC')); + $package->setReleaseDate($date); } catch (\Exception $e) { } }