sync-engine
sync-engine copied to clipboard
Multi-day "datespan" events created in Google Calendar are created as a single day event
Sample of the POST: https://gist.github.com/aaronbski/ba96e8f34cc36f88f3dfe653878a2413
If I retrieve the event from the sync engine, it shows the correct datespan (2016-12-06 to 2016-12-08 in this example), but when I look at the event in Google Calendar I see only a single all day event.
Looks like a quick fix here: https://github.com/nylas/sync-engine/blob/master/inbox/events/google.py#L566
dump["end"] = {"date": event.start.strftime('%Y-%m-%d')}
should be
dump["end"] = {"date": event.end.strftime('%Y-%m-%d')}
Thanks for submitting this! This will be addressed in our next sync-engine release.
I wanted to note that this bug still remains. I've only retested this on the Nylas hosted version as I can't get the vagrant environment to work properly, but I've been told that this fix was pushed to production.