按日期添加重复事件时,它们不会出现在android应用中。这是演示该问题的示例应用脚本:
function myFunction() {
CalendarApp.getDefaultCalendar().createEventSeries('Dates Repeated',
new Date('October 7, 2018 03:00:00 PM EST'),
new Date('October 7, 2018 04:00:00 PM EST'),
CalendarApp.newRecurrence()
.addDate(new Date('October 8, 2018'))
.addDate(new Date('October 10, 2018'))
.addDate(new Date('October 11, 2018'))
);
CalendarApp.getDefaultCalendar().createEventSeries('Tue Thu Meeting',
new Date('October 9, 2018 01:00:00 PM EST'),
new Date('October 9, 2018 02:00:00 PM EST'),
CalendarApp.newRecurrence().addWeeklyRule()
.onlyOnWeekdays([CalendarApp.Weekday.TUESDAY, CalendarApp.Weekday.THURSDAY])
.until(new Date('October 19, 2018')));
}
有两个事件“重复的日期”和“星期二会议”。运行此脚本后,两个事件都将显示在Google Calendar Web上。
Google Calendar Web:
Google Calendar Android
版本: