|
From: Chris F. <cd...@fo...> - 2010-08-16 19:03:18
|
Hi list, I've made some changes to the library, the google-calendar plugin, and the vformat plugin, which now supports calendar event syncing. The most tricky part was that opensync uses ISO 8601 *without* separators and without timezone offsets, while Google uses ISO 8601 only *with* separators and with optional timezone offsets. I could have done this conversion inside the google-calendar plugin alone, but this kind of timestamp manipulation seemed like useful code to share, so I updated the library and the vformat plugin to do conversions if necessary. This means that if you feed opensync an XMLFormat document that happens to contain ISO 8601 timestamps with a timezone offset, opensync will automatically convert it to opensync timestamp format, and convert the timezone information into a UTC timestamp, since timezone support in vformat is not yet complete. It also works in the other direction: an invalid vformat object with ISO 8601 timestamps + timezone offset will be converted to opensync timestamps in UTC. If no timezone offset is found, then just the dashes and colons are removed, as before, but this time in both xml -> vformat and vformat -> xml directions, instead of just vformat -> xml as before. Now that calendar syncing with google-calendar in the preliminary "working" state, I plan to continue testing it, and fix up the contact syncing side as well. Please report any problems you find to the mailing list. Thanks, - Chris |