Google Calendar API Java - Event modification stopped functioning unexpectedly

I’m having trouble with my Java application that uses Google Calendar API for event management. My code was working fine until today, but now event updates aren’t going through.

CalendarEvent calendarEvent = calendarService.events().get("primary", taskId).execute();

// update start time
DateTime newStartTime = new DateTime(projectTask.getBeginDate().substring(0,10)+"T08:00:00+05:30");
EventDateTime startTime = new EventDateTime()
    .setDateTime(newStartTime)
    .setTimeZone("Asia/Colombo");
cancelendarEvent.setStart(startTime);

// update end time  
DateTime newEndTime = new DateTime(projectTask.getEndDate().substring(0,10)+"T16:00:00+05:30");
EventDateTime endTime = new EventDateTime()
    .setDateTime(newEndTime)
    .setTimeZone("Asia/Colombo");
cancelendarEvent.setEnd(endTime);

// perform update
calendarService.events().update("primary", calendarEvent.getId(), calendarEvent).execute();

The weird thing is I haven’t touched this code since yesterday when it was working perfectly. Now the events just won’t update at all. Has anyone experienced similar issues with Google Calendar API suddenly stopping? Any suggestions on how to troubleshoot this would be really helpful.