Fix unintentional manipulation of release dates
parent
6bd7ca0230
commit
8961c687ee
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue