plugins/libkolab

Aleksander Machniak machniak at kolabsys.com
Thu Jul 5 12:34:57 CEST 2012


 plugins/libkolab/lib/kolab_format.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e729cc5f92e396205280e0aebb488dd4f0474cc7
Author: Aleksander Machniak <alec at alec.pl>
Date:   Thu Jul 5 12:34:25 2012 +0200

    DateTime::setTimezone() expects argument of type DateTimeZone

diff --git a/plugins/libkolab/lib/kolab_format.php b/plugins/libkolab/lib/kolab_format.php
index 23246d3..91b87ac 100644
--- a/plugins/libkolab/lib/kolab_format.php
+++ b/plugins/libkolab/lib/kolab_format.php
@@ -99,7 +99,7 @@ abstract class kolab_format
             if ($tz && $tz->getName() == 'UTC')
                 $result->setUTC(true);
             else if ($tz !== false)
-                $result->setTimezone($tz->getName());
+                $result->setTimezone($tz);
         }
 
         return $result;





More information about the commits mailing list