Feng Forum
Support => Older versions => : lukacsp April 27, 2010, 01:34:21 PM
-
Hi,
I tried to import my calendar to Google Calendar, but it failed with parse error.
The problem was that my exported ics file containts this:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:PHP
METHOD:REQUEST
X-WR-CALNAME:Lukács Péter
BEGIN:VTIMEZONE
TZID:(GMT+2:00) Athén, Isztanbul, Minszk, Helsinki, Jeruzsálem, Dél-Afrika
BEGIN:STANDARD
TZOFFSETFROM:0200
TZOFFSETTO:0200
END:STANDARD
END:VTIMEZONE
But it should look like this:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:PHP
METHOD:REQUEST
X-WR-CALNAME:Lukács Péter
BEGIN:VTIMEZONE
TZID:(GMT+2:00) Athén, Isztanbul, Minszk, Helsinki, Jeruzsálem, Dél-Afrika
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0200
END:STANDARD
END:VTIMEZONE
I modified the \environment\classes\event\CalFormatUtilities.php to add the extra + character, but im not sure why is it missing. May i missed to set up something related to my timezone or what? I using feng office in a windows 2003 server by the way.
Is it a bug or a user error? ;) Thanks...
-
I have the same problem too... And it won't even let me import the calendar to Outlook.
Has anyone found a solution to this bug?
Thank you!
Hayssam
-
We'll take a look at the standard.
-
thanks for the fix lukacsp!
the "+" symbol is missing when the user timezone is > 0
the fix in the code is in line 84 of environment/classes/event/CalFormatUtilities.php:
$tz = ($user->getTimezone() < 0 ? "-":"+").str_pad(abs($user->getTimezone())*100, 4, '0', STR_PAD_LEFT);
this fix will be in next release.