Branch 'roundcubemail-plugins-kolab-3.1' - plugins/libkolab
Aleksander Machniak
machniak at kolabsys.com
Wed Nov 20 12:57:34 CET 2013
plugins/libkolab/lib/kolab_format.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7bab6d920a981cb68e1574dc64b6a0e6369f6c50
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