Timezones are not handled correctly

Bug #1626235 reported by Dimitar
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Maya
New
Undecided
Unassigned

Bug Description

I have connected my Calendar application to two of my Google Calendars.

Events show fine on the widget (eg. if the event is today). But in the Calendar application, they show fine on the calendar itself, but not on the selected day preview.

Also it shows the time in the timezone where the Event came from, I think you should change that to the timezone where I am. On screenshot 2 it shows 12:00-12:30 while the actual time here will be 19:00-19:30.

Screenshots:
http://s15.postimg.org/z9t259ipn/Calendar1.jpg
http://s12.postimg.org/bhjp6d47x/Calendar2.jpg

Dimitar (dimitarmitoff)
description: updated
Revision history for this message
Zisu Andrei (matzipan) wrote :

I am changing the purpose of this bug to timezone issues. The wrong display of events is covered by bug #1443056 and bug #1442188.

summary: - Calendar doesn't display the events properly
+ Timezones are not handled correctly
affects: elementaryos → maya
Revision history for this message
Ron Mevissen (ronmevissen) wrote :

I had this bug as well and decided to take a peek at the code. My two cents:
- the event is registered with the correct datetime: e.g. I'm in a GMT+8 timezone and 15 dec 2016, 22.00 is stored with an iCalDateTime of 20161215T140000Z.
- when the event is read back, the ical_to_date_time() method in Utils.vala stores it in a DateTime object. From other usages in the code it seems that the app expects this to be a local DateTime which it is not.
- ical_to_date_time() should probably return the .to_local() version of the DateTime object it just created (quickly checked this and it seems to show the correct representation).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.