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:28:29 (GMT)
commit5924783b18b5c423e58b30730bfdee00ca6c85b0 (patch)
tree27a374a8e81d95e07a23d4f90a19919894abefef /plugins/libcalendaring/libcalendaring.php
parenta971ff90b920643cb0c4ed95ff3e85c8cd727ecf (diff)
downloadroundcubemail-plugins-kolab-5924783b18b5c423e58b30730bfdee00ca6c85b0.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 47cf67e..4cd5782 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);
}