[Korganizer-devel] [Bug 68345] KOrganizer ignores timezone when importing iCalendar events

Andy andy.pavlo at gmail.com
Thu Jan 10 15:59:18 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=68345         




------- Additional Comments From andy.pavlo gmail com  2008-01-10 15:59 -------
Sorry to keep emailing this page, but I figured out that the problem was the timezone that gets added to the top of the.ics file when it comes back from Google. The following perl script should remove it and make it work again (it also converts the "audio" alarms set by Google back to the popups that Kontact uses). It's not perfect, but it's good enough for now:

my $file = "~/.kde/share/apps/korganizer/std.ics";
my $alarm = "DESCRIPTION:\nACTION:DISPLAY\nTRIGGER;VALUE=DURATION:-PT5M";
my $contents = `cat $file`;
open(FILE, "> $file");
$contents =~ s/(BEGIN:VALARM).*?ACTION:AUDIO.*?(END:VALARM)/$1\n$alarm\n$2/gs;
$contents =~ s/BEGIN:VTIMEZONE.*?END:VTIMEZONE//gs;
print FILE $contents;
close(FILE);


More information about the Korganizer-devel mailing list