Comment 3 for bug 1267814

Revision history for this message
brian larochelle (larochelle-brian) wrote :

An event start date synced down from Google calendar is stored locally like this:
DTSTART;TZID=America/New_York:20140404T171500 - (local time 5:15pm or 17:15, no offset needed)

An event created locally with the calendar app looks like this:
DTSTART:20140404T220000 - (local time 6pm or 18:00, 4 hour offset needs to be applied)

I am GMT-0400.

On my system google synced calendar events are stored here:
.cache/evolution/calendar/$dataSource/calendar.ics
Locally created calendar app events are stored here:
.local/share/evolution/calendar/system/calendar.ics

So it looks like the calendar app (or Qt Organizer - EDS plugin?) is expecting date/time data to be stored in UTC and needs local offset applied.
Google data appears to already be local, but also gets the local offset applied giving incorrect time.

A short term fix in the calendar app would likely require us being able to identify the data's source as google data, and correct the offset.
 - need to confirm google data always comes down in local time, identify other formats.
A long term fix would likely be done in the eds plugin:
https://code.launchpad.net/qtorganizer5-eds

I'd be willing to explore the eds plugin (if that is the correct path), assistance setting up a build/test env would be helpful.
Please advise.