Sync-Engine : timezone conversions

View: New views
4 Messages — Rating Filter:   Alert me  

Sync-Engine : timezone conversions

by abompard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello John,

I'm looking at a conversion problem in Sync-Engine : events set as "all day
long" on the device are synced to the computer with the wrong date.
What happens is that the start time on the device is the start day at
midnight, minus the timezone. When we convert it to opensync, we only keep
the date part and just strip the time part, resulting in the wrong day when
the timezone is positive.
I'm looking into that, and found that the ConvertASTimezoneToVcal function
in formats/tzconv.py is disabled (it returns immediatly). Any reason for
that ? Is the timezone conversion from airsync to opensync a work in
progress ? Can I help you with it ?

Thanks

Aurélien
--
http://aurelien.bompard.org  ~~~~  Jabber : abompard@...
This mail is displayed with recycled electrons

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Sync-Engine : timezone conversions

by Mark Ellis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 2009-10-31 at 12:16 +0100, Aurelien Bompard wrote:

> Hello John,
>
> I'm looking at a conversion problem in Sync-Engine : events set as "all day
> long" on the device are synced to the computer with the wrong date.
> What happens is that the start time on the device is the start day at
> midnight, minus the timezone. When we convert it to opensync, we only keep
> the date part and just strip the time part, resulting in the wrong day when
> the timezone is positive.
> I'm looking into that, and found that the ConvertASTimezoneToVcal function
> in formats/tzconv.py is disabled (it returns immediatly). Any reason for
> that ? Is the timezone conversion from airsync to opensync a work in
> progress ? Can I help you with it ?
>
> Thanks
>
> Aurélien
There are a couple of bug reports in sourceforge about this, I've never
got around to looking at it.

Can't comment on why the code is like it is, but if you can fix it
you'll be an absolute star !

Mark



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

signature.asc (204 bytes) Download Attachment

Re: Sync-Engine : timezone conversions

by Dr J A Gow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 2009-10-31 at 12:16 +0100, Aurelien Bompard wrote:

> Hello John,
>
> I'm looking at a conversion problem in Sync-Engine : events set as "all day
> long" on the device are synced to the computer with the wrong date.
> What happens is that the start time on the device is the start day at
> midnight, minus the timezone. When we convert it to opensync, we only keep
> the date part and just strip the time part, resulting in the wrong day when
> the timezone is positive.
> I'm looking into that, and found that the ConvertASTimezoneToVcal function
> in formats/tzconv.py is disabled (it returns immediatly). Any reason for
> that ? Is the timezone conversion from airsync to opensync a work in
> progress ? Can I help you with it ?
>

I'll need to go back and check why this was commented out: it could be
something I commented out during development and forgot to re-include
it. I don't remember there being a problem with this function as such.

By all means try including it again and see what happens - let me know
the result. I am currently working on the Opensync 0.4x stuff - which
version of Opensync are you running?


John.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel

Re: Sync-Engine : timezone conversions

by abompard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I'll need to go back and check why this was commented out: it could be
> something I commented out during development and forgot to re-include
> it. I don't remember there being a problem with this function as such.
> By all means try including it again and see what happens - let me know
> the result.

Sure, will do.

> I am currently working on the Opensync 0.4x stuff - which
> version of Opensync are you running?

I'm still using 0.22. Good thing, we won't step on each other's feet then.


Aurélien
--
http://aurelien.bompard.org  ~~~~  Jabber : abompard@...
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@...
https://lists.sourceforge.net/lists/listinfo/synce-devel