Bug 327856

Summary: Google Calendar resource doesn't respect timezones
Product: [Frameworks and Libraries] libkgapi Reporter: Marius Orcsik <marius>
Component: calendarAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs
Priority: NOR    
Version: 2.0.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.2
Sentry Crash Report:
Attachments: Google calendar screenshot with the GMT+9 calendar showing at the correct local time GMT+3.

Description Marius Orcsik 2013-11-20 09:26:45 UTC
Using a calendar from a different timezone (the example is GMT+9, Korea) the events shown in KOrganizer are being displayed at the wrong hour (the Korea local time) instead of my local time (GMT+3).


Reproducible: Always

Steps to Reproduce:
1. Add  http://www.gomtv.net/schedule/popGoogleCal.gom in google calendar.
2. Add it to the akonadi google calendar resource.
3. View in KOrganizer
Actual Results:  
When displaying the events, they will show Korea local time instead of being converted to the user's local time.

Expected Results:  
The events should be displayed in the user's local time, see the screenshot.
Comment 1 Marius Orcsik 2013-11-20 09:31:48 UTC
Created attachment 83650 [details]
Google calendar screenshot with the GMT+9 calendar showing at the correct local time GMT+3.
Comment 2 Daniel Vrátil 2013-12-04 15:14:26 UTC
Git commit 5ca295d954d914f49524a69793d380aa14be5376 by Dan Vrátil.
Committed on 04/12/2013 at 15:12.
Pushed by dvratil into branch 'LibKGAPI/2.0'.

Respect calendar-wide timezones

Each listEvents reply contains timeZone field in header that specifies
a calendar-wide timezone that applies to all events, but was ignored by
parseEventJSONFeed(). The timeZone is now passed to JSONToEvent(), which
will first check for timezone override in "start" and "end" fields
and then apply the global timezone.
FIXED-IN: 2.0.2

M  +29   -11   libkgapi2/calendar/calendarservice.cpp
A  +0    -0    libkgapi2/music/CMakeLists.txt

http://commits.kde.org/akonadi-google/5ca295d954d914f49524a69793d380aa14be5376