davepar / gcalendarsync

Apps Script for syncing a Google Spreadsheet with Google Calendar
MIT License
161 stars 46 forks source link

Invalid argument: date_time #60

Open thomasnadler opened 4 years ago

thomasnadler commented 4 years ago

Hi!

If line 13 says "var endDate = new Date(2020, 3, 3); // Default to Jan 1, 2500", the script works. If I change the entry to "var endDate = new Date(2020, 3, 4); // Default to Jan 1, 2500" I get the error message from the screenshot.

The start date doesn't matter.

Screenshot 2019-12-17 at 12 03 10

davepar commented 4 years ago

I'm not sure what would cause that to happen. I just tried executing the second one in a javascript window, and it worked fine.