Commit d4042e8c authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #622 in ZP/z-push from...

Merge pull request #622 in ZP/z-push from bugfix/ZP-1320-caldav-x-microsoft-cdo-alldayevent to develop

* commit 'd5409db2':
  ZP-1320 Caldav X-MICROSOFT-CDO-ALLDAYEVENT support. Released under the Affero GNU General Public License (AGPL) version 3.
parents 275511d6 d5409db2
...@@ -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);
...@@ -995,6 +1001,9 @@ class BackendCalDAV extends BackendDiff { ...@@ -995,6 +1001,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