MDL-37624 calendar: Added location support

This commit is contained in:
Michael Hawkins
2018-06-29 10:46:54 +08:00
parent f61ee4e857
commit ef4e04ee26
39 changed files with 290 additions and 27 deletions
+5
View File
@@ -211,6 +211,11 @@ foreach($events as $event) {
$ev->add_property('class', 'PUBLIC'); // PUBLIC / PRIVATE / CONFIDENTIAL
$ev->add_property('last-modified', Bennu::timestamp_to_datetime($event->timemodified));
if (!empty($event->location)) {
$ev->add_property('location', $event->location);
}
$ev->add_property('dtstamp', Bennu::timestamp_to_datetime()); // now
if ($event->timeduration > 0) {
//dtend is better than duration, because it works in Microsoft Outlook and works better in Korganizer