Add 'Z' to the list of UTC timezone abbreviations (Bug #2220)

This commit is contained in:
Aleksander Machniak 2013-11-20 12:55:58 +01:00
parent 8f35ebb8bf
commit d0ea97ebb2

View file

@ -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());