Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46853

Import calendar event without DTEND incorrectly assumes 1 hour duration

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.4, 2.7.1
    • 2.6.6, 2.7.3
    • Calendar

    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

          Activity

            People

              Unassigned Unassigned
              gdharris Gary Harris
              Damyon Wiese Damyon Wiese
              Sam Hemelryk Sam Hemelryk
              Mark Nelson Mark Nelson
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Nov/14