Add 'Z' to the list of UTC timezone abbreviations (Bug #2220)
This commit is contained in:
parent
8f35ebb8bf
commit
d0ea97ebb2
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 && in_array($tz->getName(), array('UTC','GMT','+00:00')))
|
||||
if ($tz && in_array($tz->getName(), array('UTC', 'GMT', '+00:00', 'Z')))
|
||||
$result->setUTC(true);
|
||||
else if ($tz !== false)
|
||||
$result->setTimezone($tz->getName());
|
||||
|
|
Loading…
Add table
Reference in a new issue