1
0
Fork 0

Merge pull request #1131 from cs278/fix-loader-timezone-issue

Fix unintentional manipulation of release dates
pull/1132/merge
Jordi Boggiano 2012-09-25 17:12:20 -07:00
commit 2854df2698
1 changed files with 1 additions and 2 deletions

View File

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