Google Calendar Api v3 (java-client): setRecurrence: EXDATE

爷,独闯天下 提交于 2021-01-29 13:41:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!