sync-engine icon indicating copy to clipboard operation
sync-engine copied to clipboard

Multi-day "datespan" events created in Google Calendar are created as a single day event

Open aaronbski opened this issue 9 years ago • 2 comments
trafficstars

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')}

aaronbski avatar Nov 18 '16 21:11 aaronbski

Thanks for submitting this! This will be addressed in our next sync-engine release.

pfista avatar Nov 18 '16 23:11 pfista

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.

aaronbski avatar Feb 07 '17 20:02 aaronbski