Bug 393541

Summary: Wrong timezone on imported invitation
Product: [Applications] korganizer Reporter: Roland Tapken <kde>
Component: invitationsAssignee: kdepim bugs <kdepim-bugs>
Status: REOPENED ---    
Severity: normal CC: winter
Priority: NOR    
Version: 5.8.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Invitation generated by IBM Domino
Screenshot of the imported event
Screenshot in korganizers preview
Invitation correctly imported one year ago
New anomized invitation
How the invitation is displayed

Description Roland Tapken 2018-04-26 13:42:26 UTC
Created attachment 112262 [details]
Invitation generated by IBM Domino

The attached .ics file generated by IBM Domino / Lotus Notes describes an event starting at 2018-05-16T13:00:00 CEST (UTC+0200).

The rendered preview in KMail and the stored event in korganizer starts at 2018-05-16T14:00:00 CEST, one hour later.

The system timezone is set to Germany/Berlin (UTC+0200).

However I'm not sure if the file is incorrectly parsed by Korganizer or generated by Domino. I've checked an invitation I've imported one year ago with an earlier version of korganizer (the one that was part of Debian 9), and while it was correctly stored into the calender at that time the invitation is now rendered with an offset of one hour in KMail.

Back in 2005(!) a similar bug was reported at #106149
Comment 1 Roland Tapken 2018-04-26 13:43:13 UTC
Created attachment 112263 [details]
Screenshot of the imported event
Comment 2 Roland Tapken 2018-04-26 13:45:10 UTC
Created attachment 112264 [details]
Screenshot in korganizers preview
Comment 3 Roland Tapken 2018-04-26 13:50:47 UTC
Created attachment 112266 [details]
Invitation correctly imported one year ago

This invitation has correctly imported one year ago but is now imported with UTC+0100 instead of UTC+0200.
Comment 4 Allen Winter 2018-04-26 17:07:23 UTC
I imported your calendar invite into KOrganizer and it shows up on 16 May at 0700 New York timezone (which is my system timezone)
translates to 1300 Berlin

which is correct AFAICT

I wonder which libical you are using.  I'm using libical 3.0.x
Comment 5 Roland Tapken 2018-04-27 13:44:10 UTC
KDE neon (User Edition) comes with libcal2-2.0.0-4+16.04+xenial+build1.
Comment 6 Roland Tapken 2018-04-27 13:44:39 UTC
libical2-2.0.0-4+16.04+xenial+build1
Comment 7 Allen Winter 2018-04-28 14:20:31 UTC
I'm pretty sure upgrading the Neon libical to version 3.0.x will fix this.
Comment 8 Roland Tapken 2018-04-28 21:22:25 UTC
Might be the same bug as mentioned in https://github.com/libical/libical/issues/58
Comment 9 Roland Tapken 2018-04-28 21:25:10 UTC
Btw., libical3 isn't available for the user version of KDE neon, yet. And I didn't find it in dev/stable nor in dev/unstable.
Comment 10 Roland Tapken 2018-10-24 11:25:20 UTC
Still having the same problem with Ubuntu 18.04 and 18.10. The later comes with libical3-3.0.4. So libical 3.x doesn't resolve the issue.

Sidenote: an invitation for a date in CET instead of CEST is parsed correctly.
Comment 11 Roland Tapken 2018-10-24 11:25:52 UTC
Created attachment 115868 [details]
New anomized invitation
Comment 12 Roland Tapken 2018-10-24 11:27:05 UTC
Created attachment 115869 [details]
How the invitation is displayed

Notice the difference between the mail's subject and the parsed time.