Bug 76158 - Recurring event / time zone / day of the week - nasty interop problem with iCal
Summary: Recurring event / time zone / day of the week - nasty interop problem with iCal
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 3.2
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 94608 95372 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-26 04:52 UTC by Aleksey Nogin
Modified: 2008-08-18 19:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test file that displays incorrectly with Evolution/iCal (441 bytes, text/calendar)
2004-07-18 15:22 UTC, Huw Giddens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksey Nogin 2004-02-26 04:52:18 UTC
Version:           3.2 (using KDE KDE 3.2.0)
Installed from:    RedHat RPMs
OS:          Linux

To reproduce:
1) Set your timezone to "America/Los_Angeles"
2) Create an event from 4PM to 5PM and set it to reccur every Thursday.
3) Export the calendar to an .ics (or publish it)
4) Open the calendar in Apple's iCal.

Expected:
- iCal shows the event correctly

Actual:
- iCal shows the first occurrence of the event correctly, but all further occurrences hapen on _Wednesday_ instead of Thursday.

Explanaition:
- This is a time zone issue. The 4PM-5PM Pacific on Thursday is actually 12AM-1AM GMT on _Friday_. Korganizer saves the calendar in GMT and in puts the correct GMT timestamps. BUT it also puts "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TH" into the file. iCal interprents it (IMHO correctly) as meaning "every Thursday GMT", hence displays it as every _Wednesday_ Pacific time!

Possible fixes - implement one or more of the following:
- Change the Korganizer to interpret RRULE entries according to GMT. (I am not sure whether the standard requires that).
- Do what iCal does and put the TZID into the calendar file (BTW, korganer does not seem to understand those):

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME;VALUE=TEXT:Test
PRODID:-//Apple Computer\, Inc//iCal 1.0//EN
X-WR-RELCALID;VALUE=TEXT:E1D199BF-FE9A-11D7-8250-000A95A518CC
X-WR-TIMEZONE;VALUE=TEXT:America/Los_Angeles
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20040227T170000
DTEND;TZID=America/Los_Angeles:20040227T180000
SUMMARY:foobar
UID:78A33F80-6805-11D8-86B5-000A95A518CC
SEQUENCE:3
DTSTAMP:20040226T033153Z
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=WE,FR;WKST=SU
END:VEVENT
END:VCALENDAR
Comment 1 Huw Giddens 2004-07-18 15:22:52 UTC
Created attachment 6719 [details]
Test file that displays incorrectly with Evolution/iCal
Comment 2 Huw Giddens 2004-07-18 15:26:10 UTC
I can confirm this, I'm using KOrganizer 3.2.1 w. KDE 3.2.3 from the Debian unstable debs. I'm in the Pacific/Auckland timezone, and any recurring events occuring in the morning recur on the wrong day when the file is imported into Evolution or Apple's iCal - an event scheduled to occur every Monday & Thursday would show up occuring at the correct time every Tuesday & Friday.
Comment 3 Reinhold Kainhofer 2004-07-30 20:51:45 UTC
See also the short part of the discussion on kde-pim:
http://lists.kde.org/?l=kde-pim&m=108964691603927&w=2

I guess, we need to store the time zone together with the time, and must not translate to UTC.
Reinhold
Comment 4 Reinhold Kainhofer 2005-02-13 20:01:36 UTC
*** Bug 94608 has been marked as a duplicate of this bug. ***
Comment 5 Reinhold Kainhofer 2005-02-13 20:03:39 UTC
*** Bug 95372 has been marked as a duplicate of this bug. ***
Comment 6 Reinhold Kainhofer 2005-02-13 20:03:54 UTC
libkcal internally handles all recurrences in local time, not matter what the original time zone was... This needs to be fixed, of course, by first calculating the recurrence from the actual time with timezone stored in the ics file, and only afterwards translating it to local time.

Cheers, 
Reinhold
Comment 7 Reinhold Kainhofer 2006-11-02 19:28:25 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 8 Reinhold Kainhofer 2007-01-02 00:57:12 UTC
Thank you for your bug report.
The bug that you reported has been identified and has been fixed in the
latest development (CVS) version of KDE 4.0 (which will still take a while 
until it is released, unfortunately ;-) ). The bug report will be closed.

Cheers,
Reinhold
Comment 9 Luke-Jr 2007-01-02 01:19:14 UTC
Is KDE 3 support stopping before 4 is released? (or will this fix be backported?)
Comment 10 Reinhold Kainhofer 2007-01-02 01:29:24 UTC
Am Die J