summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-11-08 15:18:28 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-11-08 15:18:28 (GMT)
commit0c418da7908806a4ee89fad56a814fa7939c1175 (patch)
treefbb768de73ec27d5c21a3507aa8c30396e1c2206
parentfa497d2dbbb4e87635c10651196f0a504e1a4f02 (diff)
downloadroundcubemail-plugins-kolab-0c418da7908806a4ee89fad56a814fa7939c1175.tar.gz
Don't set due time if dateonly
-rw-r--r--plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
index 0f9d35d..f6ebe14 100644
--- a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
+++ b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
@@ -548,7 +548,8 @@ class tasklist_kolab_driver extends tasklist_driver
// convert from DateTime to internal date format
if (is_a($record['due'], 'DateTime')) {
$task['date'] = $record['due']->format('Y-m-d');
- $task['time'] = $record['due']->format('h:i');
+ if (!$record['due']->_dateonly)
+ $task['time'] = $record['due']->format('h:i');
}
// convert from DateTime to internal date format
if (is_a($record['start'], 'DateTime')) {