|
From: Chris F. <cd...@fo...> - 2010-08-16 20:33:25
|
Hold the phone... Google (or the plugin) thinks that modification is addition in some cases, so there's some issues to be worked out yet. - Chris On Mon, Aug 16, 2010 at 03:03:09PM -0400, Chris Frey wrote: > 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 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Opensync-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensync-devel |