Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescheduled events are not being updates #139

Closed
Freedom9339 opened this issue Jul 1, 2020 · 10 comments
Closed

Rescheduled events are not being updates #139

Freedom9339 opened this issue Jul 1, 2020 · 10 comments

Comments

@Freedom9339
Copy link

If there is an event that has been rescheduled to another day, the event is not updated.

I've ran a test by rescheduling an event and creating a new event. After I run the sync function, the new event appears, but the rescheduled event does not get updated and still shows on the old date.

@derekantrican
Copy link
Owner

derekantrican commented Jul 2, 2020

Can you share your ICS url/file? (if you are worried about privacy of your calendar, you can use the ICS Sanitizer that I wrote: https://derekantrican.github.io/icssanitizer.html)

@Freedom9339
Copy link
Author

This is the ics link I used.
webcal://outlook.live.com/owa/calendar/010b96a9-a122-466d-a23a-04cc2472dbb8/26fa16d9-f1fe-4d7d-b439-f5b79327f130/cid-00052366C3925291/calendar.ics

@jonas0b1011001
Copy link
Collaborator

I don't see why it should not update.

Is 'Test1' the one you rescheduled? What is the old and the new date of it?

@Freedom9339
Copy link
Author

I had it on Friday, then rescheduled it to Saturday. I just rescheduled it again for Sunday, if you want to test the script.

@jonas0b1011001
Copy link
Collaborator

Updated fine from Saturday to Sunday, maybe you set var modifyExistingEvents = false?

@Freedom9339
Copy link
Author

Freedom9339 commented Jul 2, 2020

Hmm, no, these are the set variables I used:

var howFrequent = 15;                  // What interval (minutes) to run this script on to check for new events
var onlyFutureEvents = false;          // If you turn this to "true", past events will not be synced (this will also removed past events from the target calendar if removeEventsFromCalendar is true)
var addEventsToCalendar = true;        // If you turn this to "false", you can check the log (View > Logs) to make sure your events are being read correctly before turning this on
var modifyExistingEvents = true;       // If you turn this to "false", any event in the feed that was modified after being added to the calendar will not update
var removeEventsFromCalendar = true;   // If you turn this to "true", any event created by the script that is not found in the feed will be removed.
var addAlerts = true;                  // Whether to add the ics/ical alerts as notifications on the Google Calendar events, this will override the standard reminders specified by the target calendar.
var addOrganizerToTitle = false;       // Whether to prefix the event name with the event organiser for further clarity
var descriptionAsTitles = false;       // Whether to use the ics/ical descriptions as titles (true) or to use the normal titles as titles (false)
var addCalToTitle = false;             // Whether to add the source calendar to title
var addAttendees = false;              // Whether to add the attendee list. If true, duplicate events will be automatically added to the attendees' calendar.
var defaultAllDayReminder = -1;        // Default reminder for all day events in minutes before the day of the event (-1 = no reminder, the value has to be between 0 and 40320)
                                       // See https://github.com/derekantrican/GAS-ICS-Sync/issues/75 for why this is neccessary.
var addTasks = false;

var emailSummary = false;              // Will email you when an event is added/modified/removed to your calendar
var email = "";                        // OPTIONAL: If "emailWhenAdded" is set to true, you will need to provide your email

@jonas0b1011001
Copy link
Collaborator

Settings seem fine.

Please visit https://script.google.com/home/executions, you will be able to view the execution log by clicking on an entry. Can you share the log of the last execution?

@Freedom9339
Copy link
Author

I can. It does a bunch of events, then it has a failure.

Jul 2, 2020, 12:18:14 PM	Error	TypeError: Cannot read property 'dateTime' of undefined
    at [unknown function](Helpers:493:44)
    at processEventInstance(Helpers:492:45)
    at startSync(Code:203:7)

@jonas0b1011001
Copy link
Collaborator

This should fix it.

@Freedom9339
Copy link
Author

Ok, yea that seems to of solved the issue. Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants