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,6 +548,7 @@ class tasklist_kolab_driver extends tasklist_driver
|
||||||
// convert from DateTime to internal date format
|
// convert from DateTime to internal date format
|
||||||
if (is_a($record['due'], 'DateTime')) {
|
if (is_a($record['due'], 'DateTime')) {
|
||||||
$task['date'] = $record['due']->format('Y-m-d');
|
$task['date'] = $record['due']->format('Y-m-d');
|
||||||
|
if (!$record['due']->_dateonly)
|
||||||
$task['time'] = $record['due']->format('h:i');
|
$task['time'] = $record['due']->format('h:i');
|
||||||
}
|
}
|
||||||
// convert from DateTime to internal date format
|
// convert from DateTime to internal date format
|
||||||
|
|
Loading…
Add table
Reference in a new issue