1
0
Fork 0

Force dates to be UTC

pull/342/merge
Jordi Boggiano 2012-02-22 12:46:54 +01:00
parent 85a07affd7
commit 0daa6c2dc9
1 changed files with 3 additions and 1 deletions

View File

@ -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) {
}
}