summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-28 09:44:26 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-29 13:33:34 (GMT)
commit04718ed0ef44892efa5c0b135d7a3042fa496b48 (patch)
tree7d23aa9155ad967902c922fd1a39883688e18479
parente095efae99f37dae7161f5d2440e538a4cba74f8 (diff)
downloadroundcubemail-plugins-kolab-04718ed0ef44892efa5c0b135d7a3042fa496b48.tar.gz
Use generic date conversion method from Rondcube utils
-rw-r--r--plugins/libcalendaring/libcalendaring.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php
index 5a1a8b0..9c507a3 100644
--- a/plugins/libcalendaring/libcalendaring.php
+++ b/plugins/libcalendaring/libcalendaring.php
@@ -145,7 +145,7 @@ class libcalendaring extends rcube_plugin
if (is_numeric($dt))
$dt = new DateTime('@'.$dt);
else if (is_string($dt))
- $dt = new DateTime($dt);
+ $dt = rcube_utils::anytodatetime($dt);
if ($dt instanceof DateTime && !($dt->_dateonly || $dateonly)) {
$dt->setTimezone($this->timezone);