plugins/libkolab
Aleksander Machniak
machniak at kolabsys.com
Wed Nov 20 12:56:45 CET 2013
plugins/libkolab/lib/kolab_format.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d0ea97ebb21b25a7d46c94458600fbd64de2dcdf
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Wed Nov 20 12:55:58 2013 +0100
Add 'Z' to the list of UTC timezone abbreviations (Bug #2220)
diff --git a/plugins/libkolab/lib/kolab_format.php b/plugins/libkolab/lib/kolab_format.php
index 9dc8a31..679ae10 100644
--- a/plugins/libkolab/lib/kolab_format.php
+++ b/plugins/libkolab/lib/kolab_format.php
@@ -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());
More information about the commits
mailing list