Google 日历 API JAVA 更新事件突然不起作用

Google Calendar API JAVA Update event not working suddenly

`Event event = service.events().get("primary", eventID).execute();

        //set new start time
        DateTime startDateTime = new DateTime(assignmentTask.getStartDate().substring(0,10)+"T09:00:00+05:30");
        EventDateTime start = new EventDateTime()
            .setDateTime(startDateTime)
            .setTimeZone("Asia/Colombo");
        event.setStart(start);

        //set new end time
        DateTime endDateTime = new DateTime(assignmentTask.getFinishDate().substring(0,10)+"T17:00:00+05:30");
        EventDateTime end = new EventDateTime()
            .setDateTime(endDateTime)
            .setTimeZone("Asia/Colombo");
        event.setEnd(end);

        //update event
        service.events().update("primary", event.getId(), event).execute();`

我在我的应用程序中使用 google 日历 API 来添加和更新日历事件。 API 昨天工作得很好。当我今天重新检查功能时,事件没有得到更新。我昨天检查后没有更改我的代码,所以我不明白为什么它突然不起作用。 对此事有所了解将不胜感激。我能做些什么来解决这个问题? 提前致谢。

Google 日历 API 不允许事件更新超过一次。所以我只是删除了该事件并在其位置插入了一个新事件。