Don't set due time if dateonly
This commit is contained in:
parent
fa497d2dbb
commit
0c418da790
1 changed files with 2 additions and 1 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue