Skip to content

Commit

Permalink
Merge branch 'MDL-48088-28' of git://github.com/jethac/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_28_STABLE
  • Loading branch information
danpoltawski committed Dec 22, 2014
2 parents db6bbcb + 244c697 commit 6303e89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions calendar/lib.php
Expand Up @@ -1931,6 +1931,9 @@ function calendar_normalize_tz($tz) {
case('Japan Standard Time'):
$tz = 'Asia/Tokyo';
break;
case('Romance Standard Time'):
$tz = 'Europe/Brussels';
break;
}
return $tz;
}
Expand Down Expand Up @@ -2971,6 +2974,7 @@ function calendar_add_icalendar_event($event, $courseid, $subscriptionid, $timez
} else {
$endtz = isset($event->properties['DTEND'][0]->parameters['TZID']) ? $event->properties['DTEND'][0]->parameters['TZID'] :
$timezone;
$endtz = calendar_normalize_tz($endtz);
$eventrecord->timeduration = strtotime($event->properties['DTEND'][0]->value . ' ' . $endtz) - $eventrecord->timestart;
}

Expand Down

0 comments on commit 6303e89

Please sign in to comment.