Ticket #473 (closed defect: fixed)
Date error while using google calendar plugin
| Reported by: | wimpunk | Owned by: | srwalter |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin: google | Version: | 0.22 |
| Severity: | normal | Keywords: | |
| Cc: | wimpunk@… |
Description
When trying the google-calendar plugin, I get:
xs to osync: 2007-04-07T14:00:00.000+02:00 => 20070407T140000
xs to osync: 2007-04-07T21:30:00.000+02:00 => 20070407T213000
Traceback (most recent call last):
File "/usr/lib/opensync/google-cal-helper", line 402, in ?
sys.exit(main(sys.argv))
File "/usr/lib/opensync/google-cal-helper", line 394, in main
return fn(argv)
File "/usr/lib/opensync/google-cal-helper", line 286, in oper_get_all
data = e.dumpOsync()
File "/usr/lib/opensync/google-cal-helper", line 200, in dumpOsync
self.addElementContent(doc, event, 'DateStarted', xsdateToOsync(self.dtstart))
File "/usr/lib/opensync/google-cal-helper", line 118, in xsdateToOsync
raise DateConversionError("Invalid date/time: %s" % (s))
__main__.DateConversionError: Invalid date/time:
Anyone any suggestion what's going wrong?
Attachments
Change History
Changed 6 years ago by srwalter
- Attachment gcal-recurrency.patch added
comment:1 Changed 6 years ago by srwalter
- Owner changed from ehabkost to srwalter
- Status changed from new to assigned
I'm guessing that you have events with recurrency in your calendar. That was the problem for me when I had the same "invalid date/time" error. I just attached a patch to handle recurrent events in google calendar. It is tested to work as expected with my ipod using the file-sync plugin. It'd be great if you could try it out and see if it fixes things for you, too.
comment:2 Changed 6 years ago by wimpunk
I haven't tested the patch yet but it seems to fail on invitations I've got from an outlook user. I'll try the patch as soon as possible and send my result back.
comment:3 Changed 6 years ago by wimpunk
Nice, I've installed the patch and the error disappeared. Thanks a lot.

Support recurrent events in google calendar