Define aliases for UTC timezone
This commit is contained in:
parent
f24a1da34b
commit
91f32da8d1
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ abstract class kolab_format
|
|||
if (!$dateonly)
|
||||
$result->setTime($datetime->format('G'), $datetime->format('i'), $datetime->format('s'));
|
||||
|
||||
if ($tz && $tz->getName() == 'UTC')
|
||||
if ($tz && in_array($tz->getName(), array('UTC','GMT','+00:00')))
|
||||
$result->setUTC(true);
|
||||
else if ($tz !== false)
|
||||
$result->setTimezone($tz->getName());
|
||||
|
|
Loading…
Add table
Reference in a new issue