summaryrefslogtreecommitdiffstats
path: root/apps/tasks/lib/app.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-20 22:56:59 +0200
committerBart Visscher <bartv@thisnet.nl>2012-04-20 22:56:59 +0200
commit3d68732657dee0e131bb54c6ca4c4052cce7ce2f (patch)
tree99adcd950471cad68ca787a0a00a0052f8c4f1b8 /apps/tasks/lib/app.php
parent1384be4bff8544244c689ecb69e43ea09654416b (diff)
downloadnextcloud-server-3d68732657dee0e131bb54c6ca4c4052cce7ce2f.tar.gz
nextcloud-server-3d68732657dee0e131bb54c6ca4c4052cce7ce2f.zip
Tasks: Due date without time support added
Diffstat (limited to 'apps/tasks/lib/app.php')
-rw-r--r--apps/tasks/lib/app.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/tasks/lib/app.php b/apps/tasks/lib/app.php
index ae7efc37889..32d924c10df 100644
--- a/apps/tasks/lib/app.php
+++ b/apps/tasks/lib/app.php
@@ -52,6 +52,7 @@ class OC_Task_App {
$task['categories'] = $vtodo->getAsArray('CATEGORIES');
$due = $vtodo->DUE;
if ($due) {
+ $task['due_date_only'] = $due->getDateType() == Sabre_VObject_Element_DateTime::DATE;
$due = $due->getDateTime();
$due->setTimezone(new DateTimeZone($user_timezone));
$task['due'] = $due->format('U');