Bug 279427 - Wrong timezone for events shown in clock and calendar plasma widgets
Summary: Wrong timezone for events shown in clock and calendar plasma widgets
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-clock (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 278508 283803 286480 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-05 09:06 UTC by Kubicle
Modified: 2011-12-05 12:37 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.4


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kubicle 2011-08-05 09:06:45 UTC
Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

Calendar and Clock widgets can now show events from your calendar (korganizer/akonadi).

However, at least on two machines I have tested it on, the event times don't respect one's timezone setting, but are shown in UTC time.

For example, in an UTC+3 timezone, an event that is set in korganizer to occur between 8-9 am, is shown in calendar/clock widgets to occur between 5-6 am. Changing the widget's timezones or default timezone has no effect on this.

Reproducible: Always

Steps to Reproduce:
1. Set a non UTC timezone as your timezone
2. Add an event to korganizer
3. Set Calendar/Clock widget to show events

Actual Results:  
The event times should be same as the ones you have set in korganizer

Expected Results:  
The event times are shown in UTC time, which is off by a number of hours depending on your time zone.

Thanks for reading.

The event times are shown correctly in the Eventlist widget
Comment 1 Kubicle 2011-08-05 10:40:15 UTC
Just in case it makes a difference, the events are stored on an imap server, and fetched via the akonadi kolab resource.
Comment 2 Fabian 2011-09-13 15:34:00 UTC
I can confirm this bug in kde 4.7.1. 
An event with these start information in its *.ics file  DTSTART:20110913T081500Z is in Germany shown at 8:15 in the clock widget. In contrast Korganizer shows this event at 10:15.
Comment 3 Daniel Eklöf 2011-09-22 11:42:39 UTC
One more confirmation. The following event:

DTSTART:20111004T133000Z
DTEND:20111004T143000Z

is shown at 13:30-14:30 (CEST, UTC/GMT+2) in the digital clock widget.

Korganizer shows the event at the correct time, 15:30-16:30 CEST.
Comment 4 Daniel Eklöf 2011-09-22 11:46:26 UTC
Btw, my events are stored in an Akonadi Calendar resource, backed by an .ics file.

This is width Akonadi 1.6.1 + KDE 4.7.1.
Comment 5 Jayesh Badwaik 2011-09-23 15:17:00 UTC
I can confirm this bug. Events are correct everywhere except for the plasma widget where instead of GMT+0530 they are at GMT/UTC. Seems to be a bug in the widget itself.
Comment 6 David E. Narvaez 2011-10-09 03:26:32 UTC
I can confirm this bug and will be working on it.
Comment 7 David E. Narvaez 2011-11-10 21:01:58 UTC
Git commit 959c60f47222c241419bfc4837e57005813a798f by David E. Narváez.
Committed on 10/11/2011 at 22:00.
Pushed by narvaez into branch 'master'.

Adjust TimeSpecs in the Calendar Dataengine to Reflect Local Time

Adjust events start and end dates to local time at the Dataengine.

BUG: 279427
FIXED-IN: 4.7.4
REVIEW: 103104

M  +10   -10   plasma/generic/dataengines/calendar/eventdatacontainer.cpp

http://commits.kde.org/kde-workspace/959c60f47222c241419bfc4837e57005813a798f
Comment 8 David E. Narvaez 2011-11-21 04:30:15 UTC
*** Bug 286480 has been marked as a duplicate of this bug. ***
Comment 9 Daniel Faust 2011-12-02 18:05:31 UTC
*** Bug 283803 has been marked as a duplicate of this bug. ***
Comment 10 Beat Wolf 2011-12-05 12:37:10 UTC
*** Bug 278508 has been marked as a duplicate of this bug. ***