Commit 67be1d68 authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #298 in ZP/z-push from bugfix/ZP-980-exception-of-an-all-day-recurrence to develop

* commit '86e2694f':
  ZP-980 Exception of an all day recurrence is not all day.
parent a7847061
...@@ -482,6 +482,12 @@ class MAPIProvider { ...@@ -482,6 +482,12 @@ class MAPIProvider {
$exception->busystatus = fbTentative; $exception->busystatus = fbTentative;
} }
// if an exception lasts 24 hours and the series are an allday events, set also the exception to allday event,
// otherwise it will be a 24 hour long event on some mobiles.
// @see https://jira.z-hub.io/browse/ZP-980
if (isset($exception->starttime, $exception->endtime) && ($exception->endtime - $exception->starttime == 86400) && $syncMessage->alldayevent) {
$exception->alldayevent = 1;
}
array_push($syncMessage->exceptions, $exception); array_push($syncMessage->exceptions, $exception);
} }
......
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