Bug 184669 - Events stored in different time zone than the view's TZ are potentially displayed on wrong day
Summary: Events stored in different time zone than the view's TZ are potentially displ...
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.2.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 16:13 UTC by Reinhold Kainhofer
Modified: 2009-05-27 10:10 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Inconsistent TZ conversions (104.13 KB, image/png)
2009-02-17 16:14 UTC, Reinhold Kainhofer
Details
VCALENDAR file showing UTC test appointments (1.15 KB, text/plain)
2009-05-02 03:48 UTC, fischer-michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reinhold Kainhofer 2009-02-17 16:13:50 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

KOrganizer's TZ is Europe/Vienna. If I now create an event in UTC in Feb 17, 23:00 UTC, lasting 1 hour, it will be displayed incorrectly on Feb 17, 0:00-01:00 Europe/Vienna (instead of the correct Feb 18, 0:00-1:00 Europe/Vienna). Additionally, the date navigator will mark both Feb 17 and Feb 18 as bold (even though the event only happens on Dec 25 in the view's TZ). The preview pane shows the correct date/time, though.

It seems that the check whether an event occurs on a given date (and also the function to return all events for a given date) does not always consistently convert date/times to the view's timezone.

Attached is a screenshot, the view's TZ is Europe/Vienna, the calendar contains only that single event.
Comment 1 Reinhold Kainhofer 2009-02-17 16:14:17 UTC
Created attachment 31403 [details]
Inconsistent TZ conversions
Comment 2 fischer-michael 2009-05-02 03:45:40 UTC
I can confirm a similar problem for TZ America/New_York (-4:00 hours from UTC).  For appointments specified in UTC, the day is not always converted to the local day before display.

The following example should make the clear.  I created two test appointments.
Test A starts on 05/02/2009 00:00 am UTC and ends on 05/02/2009 02:00 am UTC.
Test B starts on 05/03/2009 00:00 am UTC and ends on 05/03/2009 02:00 am UTC.
Both are correct in the VCALENDAR file.  (See attachment.)  However, they both display incorrectly.

Month view:  Test A displays as 08:00 pm on 5/2 (should be 5/1 New York time).  Test B displays as 08:00 pm on 5/3 (should be 5/2 New York time).

Week view:  Test A displays as 08:00 pm - 10:00 pm on 5/2 (should be 5/1).  Test B doesn't display at all!

Day view:  Neither appointment displays.

Others have apparently encountered this bug after conversion from korganizer 3, but this test was done entirely within KDE 4.2.2.

Platform:  Fedora 10
OS: Linux
KDE: 4.2.2
Comment 3 fischer-michael 2009-05-02 03:48:23 UTC
Created attachment 33288 [details]
VCALENDAR file showing UTC test appointments

This shows that the problem is in the display of events with UTC times, not in their creation.
Comment 4 luisfe 2009-05-27 02:26:18 UTC
I also confirm this on Debian testing (kde 4.4.2) adding event in different timezones that cross a day border are incorrected kandled
Comment 5 Sergio Martins 2009-05-27 10:10:32 UTC
This is fixed in trunk (r965588) and in KDE-4.2.4.