summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring/libcalendaring.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-11-01 10:23:42 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-11-01 10:23:42 (GMT)
commit875a76c801724cb4180bc45f7ad14001d5be5c97 (patch)
tree232cb20d7817ed31d6d5eb349b7b95823a991943 /plugins/libcalendaring/libcalendaring.php
parent5f3c4106a4f43bac0d266b489e467a9d38bddc5e (diff)
downloadroundcubemail-plugins-kolab-875a76c801724cb4180bc45f7ad14001d5be5c97.tar.gz
Don't set timezone on allday dates (#2463)
Diffstat (limited to 'plugins/libcalendaring/libcalendaring.php')
-rw-r--r--plugins/libcalendaring/libcalendaring.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php
index 05465b0..cdae37c 100644
--- a/plugins/libcalendaring/libcalendaring.php
+++ b/plugins/libcalendaring/libcalendaring.php
@@ -120,14 +120,14 @@ class libcalendaring extends rcube_plugin
* @param mixed Any kind of a date representation (DateTime object, string or unix timestamp)
* @return object DateTime object in user's timezone
*/
- public function adjust_timezone($dt)
+ public function adjust_timezone($dt, $dateonly = false)
{
if (is_numeric($dt))
$dt = new DateTime('@'.$dt);
else if (is_string($dt))
$dt = new DateTime($dt);
- if ($dt instanceof DateTime) {
+ if ($dt instanceof DateTime && !($dt->_dateonly || $dateonly)) {
$dt->setTimezone($this->timezone);
}