summaryrefslogtreecommitdiff
path: root/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php')
-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')) {