Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.6.4, 2.7.1
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
patch-1
-
- Create No Duration Event
- Export it
- Import it as ICS
- The imported event should have no duration
Description
When importing an ICS file that was exported from the Moodle calendar, events with no duration are changed to have a 1 hour duration because they have no DTEND property.
The following condition is in calendar/lib.php:
if (empty($event->properties['DTEND'])) {
|
$eventrecord->timeduration = 3600; // one hour if no end time specified
|
} else {
|
$eventrecord->timeduration = strtotime($event->properties['DTEND'][0]->value) - $eventrecord->timestart;
|
}
|
Attachments
Issue Links
- has been marked as being related by
-
MDL-47571 add support for DURATION when importing iCalendar events
-
- Closed
-