Bug 318405 - Broken timezones handling
Summary: Broken timezones handling
Status: CONFIRMED
Alias: None
Product: libkgapi
Classification: Frameworks and Libraries
Component: calendar (show other bugs)
Version: 2.0.0
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
: 307790 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-15 20:10 UTC by Raman Gupta
Modified: 2021-03-10 00:12 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (59.58 KB, image/png)
2013-05-29 08:57 UTC, frautukka
Details
Showing incorrect date/times in KOrganizer (182.60 KB, image/png)
2013-05-29 13:53 UTC, Raman Gupta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raman Gupta 2013-04-15 20:10:07 UTC
I have a Google calendar event that has a non-local (and non-UTC) timezone i.e. the time zone is set explicitly for the event. The event is in the timezone of the sender, which in this case is Buenos Aires (GMT -3, and they do not have daylight savings [1]).

Google calendar shows this correctly.

I use the "Akonadi Google Calendar Resource" to sync my google calendar with KOrganizer. However, KOrganizer shows the same event at an incorrect time.

NOTE that this event was imported from an Outlook invitation directly into Google Calendar. When I tried to replicate this issue with a single event created directly in Google Calendar, I was unable to replicate it i.e. KOrganizer showed the time correctly. However, I was able to copy the event imported from Outlook into a new calendar in Google, and KOrganizer did incorrectly show the event time (at 2pm instead of 3pm local). My local time zone is America/New_York.

Here is the ICal exported directly from Google: http://paste.kde.org/725246/
Here is the iCal for the same event exported from KOrganizer: http://paste.kde.org/725240/

[1] http://www.timeanddate.com/worldclock/timezone.html?n=51


Reproducible: Always
Comment 1 Raman Gupta 2013-04-15 20:40:31 UTC
I have also tested a case where the event in question spans a daylight savings change in my local time (America/New_York). Google correctly shifts the time of the event, for example:

Mar 8 : Event is at 16:00 Buenos Aires Time (GMT -3), and at 14:00 (GMT-5) in my Google calendar (correct, see [1]). KOrganizer incorrectly shows the event at 12 Noon America/New_York.

Mar 11 (after DST change): Event is at 16:00 Argentina Time (GMT -3), and at 15:00 (GMT-4) in my Google calendar (correct, see [2]). KOrganizer still incorrectly shows the event at 12 Noon America/New_York.

[1] http://www.timeanddate.com/worldclock/meetingdetails.html?year=2012&month=03&day=8&hour=19&min=0&sec=0&p1=188&p2=51

[2] http://www.timeanddate.com/worldclock/meetingdetails.html?year=2012&month=03&day=11&hour=19&min=0&sec=0&p1=188&p2=51
Comment 2 Nathan Wolf 2013-04-30 21:18:39 UTC
I too am having issues with Korganizer not showing events in the correct time zone.  In my case, I have recently moved to another time zone for work.  I created the events using Google's calendar web interface.  The time zone is correct in Google and each event is using the specified time zone I am in.  My mobile devices are showing the events correctly, Korganizer is showing a 7 hour difference from what it should be.

Reproducible, most of the time.  A few events are showing in the proper time zone.  Most are not.
Comment 3 frautukka 2013-05-29 08:57:51 UTC
Created attachment 80150 [details]
screenshot

I also have issues with incorrect timezones. I don't use Google calendar but Horde. My Korganizer version is 4.9.5 on SuSE 12.2.
The weekly event was set using UTC time set to 13:00-15:00 while my timezone was wintertime Europe/Berlin (i.e. UTC+1). The event is shown correctly in January at 14:00-16:00. Now, in the meantime my timezone changed to summertime (i.e. UTC+2). In May the event is displayed at 15:00-17:00. This could be considered correct, but at least it was not my intention. But the worst thing is, that although the event is displayed 15:00-17:00 the text says 14:00-16:00... I think this is the real bug. screenshot attached
Comment 4 Raman Gupta 2013-05-29 13:30:47 UTC
(In reply to comment #3)
> although the event is displayed 15:00-17:00 the text
> says 14:00-16:00... I think this is the real bug. screenshot attached

That might be *another* bug, but it is not the bug I reported. In my case, the text of the event matches its display position, but *both* the text and display position in the calendar are incorrect.
Comment 5 Raman Gupta 2013-05-29 13:53:52 UTC
Created attachment 80156 [details]
Showing incorrect date/times in KOrganizer

I have made my Test calendar public:

https://www.google.com/calendar/embed?src=heh0efcfo6b15ah933dvthfu74%40group.calendar.google.com&ctz=America/Toronto

It contains the events described above. Attached is a screenshot of KOrganizer showing the incorrect times (highlighted).
Comment 6 Daniel Vrátil 2013-05-31 23:11:56 UTC
*** Bug 307790 has been marked as a duplicate of this bug. ***
Comment 7 Erik Quaeghebeur 2013-11-15 09:48:39 UTC
Perhaps related to the use of X-WR-TIMEZONE in the Google calendar?

http://blog.jonudell.net/2011/10/17/x-wr-timezone-considered-harmful/
Comment 8 Daniel Vrátil 2013-11-15 12:10:52 UTC
Thanks, but the Google Calendar API already exposes data as a JSON, so unfortunately that does not really help us :(
Comment 9 Hannes Schniepp 2014-10-28 14:06:20 UTC
On KDE 4.13.3 here, and Kontact still cannot handle google calendar events from different time zones correctly. I am currently on time zone "Berlin", and I am syncing with a gmail calendar account featuring some events in U.S. (EST) time zone, other events in European (CET) time. The European events are shown correctly, the U.S. are offset not only by the time difference, but by an additional 7 hours! 
In google calendars (web interface) and in my android phone, everything shows correctly. I should add that my local KDE interface is running in CET time zone, so is the google calendars web interface.
Comment 10 Hannes Schniepp 2014-10-28 14:06:50 UTC
On KDE 4.13.3 here, and Kontact still cannot handle google calendar events from different time zones correctly. I am currently on time zone "Berlin", and I am syncing with a gmail calendar account featuring some events in U.S. (EST) time zone, other events in European (CET) time. The European events are shown correctly, the U.S. are offset not only by the time difference, but by an additional 7 hours! 
In google calendars (web interface) and in my android phone, everything shows correctly. I should add that my local KDE interface is running in CET time zone, so is the google calendars web interface.
Comment 11 Raman Gupta 2015-12-16 20:44:05 UTC
It seems to be working correctly on KDE Korganizer 4.14.10 with libkgapi 2.2.0 (tested on Fedora 23). My test cases are all ok. Can others with the same issue confirm?
Comment 12 Justin Zobel 2021-03-10 00:12:42 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.