问题
Does anyone know how to set EXDATE for an event in Google Calendar API v3 (Java client)?
Using setRecurrence(List recurrence): RRULE works perfectly, but EXRULE, RDATE and EXDATE don't seem to work (same with getRecurrence(List recurrence): only RRULE is retrieved).
import com.google.api.services.calendar.model.Event;
Event event = new Event();
// ...
List RecurrenceList = new ArrayList<String>();
RecurrenceList.add("RRULE:FREQ=WEEKLY;BYDAY=FR"); //this works
RecurrenceList.add("EXDATE:20121019T100000Z"); //this doesn't work
event.setRecurrence(RecurrenceList);
// ...
回答1:
I figured it out, I just hadn't used the UTC date, it's working now
来源:https://stackoverflow.com/questions/12867730/google-calendar-api-v3-java-client-setrecurrence-exdate