diff --git a/api/src/Schedule.php b/api/src/Schedule.php index 16c3e11..c89dc60 100644 --- a/api/src/Schedule.php +++ b/api/src/Schedule.php @@ -102,6 +102,8 @@ public function generateIcal($schedule) { $code .= "DTSTART;TZID=America/New_York:{$day}T{$startTime}\r\n"; $code .= "DTEND;TZID=America/New_York:{$day}T{$endTime}\r\n"; + //$holidayTimes is an array of DateTimes that are listed as holidays in RIT's calendar. + $code .= "EXDATE:{$holidayTimes}\r\n"; $dayCodes = array('SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'); $days = array(); foreach ($times as $time) {