Merge pull request #1131 from cs278/fix-loader-timezone-issue
Fix unintentional manipulation of release datespull/1132/merge
commit
2854df2698
|
@ -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) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue