From 2eedbbf0f439b1dd5d3e4d771f781291715c5171 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 6 Mar 2013 15:14:51 +0100 Subject: [PATCH] Also adjust the timezone of existing DateTime objects --- plugins/libcalendaring/libcalendaring.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php index 07602774..138c5065 100644 --- a/plugins/libcalendaring/libcalendaring.php +++ b/plugins/libcalendaring/libcalendaring.php @@ -109,8 +109,6 @@ class libcalendaring extends rcube_plugin $dt = new DateTime('@'.$td); else if (is_string($dt)) $dt = new DateTime($dt); - else - return $dt; $dt->setTimezone($this->timezone); return $dt;