Commit d5409db2 authored by Bart Vullings's avatar Bart Vullings

ZP-1320 Caldav X-MICROSOFT-CDO-ALLDAYEVENT support. Released under the Affero...

ZP-1320 Caldav X-MICROSOFT-CDO-ALLDAYEVENT support. Released under the Affero GNU General Public License (AGPL) version 3.
parent 3ccbfd83
...@@ -628,6 +628,12 @@ class BackendCalDAV extends BackendDiff { ...@@ -628,6 +628,12 @@ class BackendCalDAV extends BackendDiff {
} }
break; break;
case "X-MICROSOFT-CDO-ALLDAYEVENT":
if ($property->Value() == "TRUE") {
$message->alldayevent = "1";
}
break;
case "DURATION": case "DURATION":
if (!isset($message->endtime)) { if (!isset($message->endtime)) {
$start = date_create("@" . $message->starttime); $start = date_create("@" . $message->starttime);
...@@ -1003,6 +1009,9 @@ class BackendCalDAV extends BackendDiff { ...@@ -1003,6 +1009,9 @@ class BackendCalDAV extends BackendDiff {
$vevent->AddProperty("X-MICROSOFT-CDO-ALLDAYEVENT", "FALSE"); $vevent->AddProperty("X-MICROSOFT-CDO-ALLDAYEVENT", "FALSE");
} }
} }
else {
$vevent->AddProperty("X-MICROSOFT-CDO-ALLDAYEVENT", "TRUE");
}
if (isset($data->recurrence)) { if (isset($data->recurrence)) {
$vevent->AddProperty("RRULE", $this->_GenerateRecurrence($data->recurrence)); $vevent->AddProperty("RRULE", $this->_GenerateRecurrence($data->recurrence));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment