日历按日期重复活动将不起作用

时间:2018-10-11 15:47:00

标签: android mobile google-apps-script google-calendar-api

按日期添加重复事件时,它们不会出现在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:

  • “重复的日期”按预期于10月7日,8月10日,11日出现在Google日历网上。
  • “星期二会议”如期在10月9日,11月16日,18日出现在Google日历网上。

Google Calendar Android

  • “重复日期”事件没有出现。
  • “星期二会议”如期出现。

版本:

  • Google Chrome桌面版69.0.3497.100(正式版本)(64位)
  • Google Calendar Android版本6.0.2-213980666-发布
  • Google Pixel上的Android版本9

0 个答案:

没有答案
相关问题