kuzmoyev / google-calendar-simple-api

Pythonic wrapper for the Google Calendar API
https://google-calendar-simple-api.readthedocs.io
MIT License
565 stars 42 forks source link

Time granularity is silently changed to seconds #189

Closed MartinBernstorff closed 2 days ago

MartinBernstorff commented 3 months ago

I had some input in microseconds which I am trying to sync to gcal. This meant that event identity changed during a round-trip, e.g.:

source.start = 00:00:00.1

# Upload to google calendar, download again

gcal_event.start = 00:00:00

I wonder whether it would be helpful to log a warning if the event contain a microsecond component? This took me an hour to fix ;-)

MartinBernstorff commented 3 months ago

I'll gladly submit a PR if we agree on logging a warning 👍