Using the PHP Client Library, I'm trying to create a weekly recurring event that will skip on days when we are closed for business.
I'm passing these parameters to make a new Google_Service_Calendar_Event object that gets passed to Google_Service_Calendar::events->update().
$params = array(
'summary' => 'Event Title',
'location' => 'Event Location',
'start' => array(
'dateTime' => $slot['startDate'].'T'.$slot['startTime'],
'timeZone' => 'America/New_York',
),
'end' => array(
'dateTime' => $slot['startDate'].'T'.$slot['endTime'],
'timeZone' => 'America/New_York',
),
'recurrence' => $arrRecurrence,
'attendees' => $arrAttendees,
);
$arrRecurrence
has rules dictating that the event should repeat weekly until the end of February, skipping Presidents' Day:
Array
(
[0] => EXDATE;VALUE=DATE:20180219
[1] => RRULE:FREQ=WEEKLY;UNTIL=20180224;BYDAY=MO
)
The RRULE
is being applied correctly, but the EXDATE
is being ignored and I can't seem to figure out why.