[EventCalendar] Re: calendar output completely broken
Dr. Peter Troxler
peter.troxler at gmx.net
Thu Sep 20 20:26:21 UTC 2007
apologies to any sunbirds, ... of course sb adheres to rfc2445 which
stipulates that the TZID has to be defined in the file we're
exporting in a VTIMEZONE entry ... now since ec3 does not really
handle daylight saving times &c. I'd suggest to add the following
reduced VTIMEZONE definition to eventcalendar3.php after line 355
echo "BEGIN:VTIMEZONE\r\n";
echo "TZID:" . $ec3->tz . "\r\n";
echo "TZOFFSETFROM:" . get_option($gmt_offset) . "\r\n";
echo "TZOFFSETTO:" . get_option($gmt_offset) . "\r\n";
echo "END: VTIMEZONE\r\n";
this is just after this code (lines 353-355)
echo "BEGIN:VCALENDAR\r\n";
echo "VERSION:2.0\r\n";
echo "X-WR-CALNAME:$name\r\n";
tested & works for url import with sunbird and gCal.
'nuff
/ pt
On 20-sep-2007, at 21:28, Dr. Peter Troxler wrote:
> hmmm, just found out that eliminating the TZID info altogether
> allows sunbird to import the file ... now I have the impression
> that sunbird is even more broken than gCal when it comes to
> implementing rfc2445, and I think I'll definitely stop debugging
> here ;-)
>
> / pt
>
> On 20-sep-2007, at 20:37, Dr. Peter Troxler wrote:
>
>> Hi Claire
>>
>> (back in debugging mode again)
>>
>> I've in parallel implemented the changes on one of the sites I'm
>> running (<http://www.scope34.org>, alas it's all in foreign
>> (german)), and from this site URL linking into gCal worked
>>
>> see yourself <webcal://www.scope34.org/?ec3_ical>
>>
>> (however, in Sunbird I do get an error "invalid
>> timezone" [Exception... "Component returned failure code:
>> 0x804a0001 [calIIcalComponent.startTime]" nsresult: "0x804a0001
>> (<unknown>)" location: "JS frame :: file:///Applications/
>> Sunbird.app/Contents/MacOS/js/calItemBase.js :: anonymous :: line
>> 526" data: no]
>> .... my fix sends "Europe/Zurich" which I believe is a valid
>> timezone and sunbirds mac timezone implementation maybe a little
>> incomplete...)
>>
>> this is actually what happenes if I edit your ical file down to
>> only the first entry, which leads me to believe that the UTF-8
>> issue actually does have to do with some funny characters
>>
>> maybe you try to import this below into sunbird just to check ...?
>>
>> BEGIN:VCALENDAR
>> VERSION:2.0
>> X-WR-CALNAME:cops and robbers
>> BEGIN:VEVENT
>> SUMMARY:Jeffrey Lewis & Jack Lewis\, Hands and Fingers\, Quack Quack
>> URL;VALUE=URI:http://www.copsandrobbers.net/2005/08/24/jeffrey-
>> lewis-jack-lewis-hands-and-fingers-quack-quack/
>> UID:1-http://www.copsandrobbers.net/2005/08/24/jeffrey-lewis-jack-
>> lewis-hands-and-fingers-quack-quack/
>> DESCRIPTION:[by: copsandrobbers]
>> TRANSP:OPAQUE
>> DTSTART;TZID=UTC-1:20050822T200000
>> DTEND;TZID=UTC-1:20050822T200000
>> END:VEVENT
>> END:VCALENDAR
>>
>>
>> / pt
>>
>> On 20-sep-2007, at 11:41, claire circuit wrote:
>>
>>>> could it be that you have a corrupted post somewhere? e.g. <http://
>>>> www.copsandrobbers.net/2007/05/17/i-concur-launch-night-
>>>> brudenell-31st-may/> gives me funny characters on the screen
>>>> with safari
>>>
>>> i think the funny characters come from WP changing the database to
>>> latin in 2.3. it's definitely a database encoding problem.
>>>
>>> since the feed loads OK in iCal, and validates, i can't help
>>> thinking
>>> that the plugin is just generating a field or variable that
>>> google and
>>> sunbird don't like.
>>>
>>> claire
>>>
>>> _______________________________________________
>>> Blog: http://wpcal.firetree.net/
>>> EventCalendar at firetree.net mailing list
>>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>
>>
>> _______________________________________________
>> Blog: http://wpcal.firetree.net/
>> EventCalendar at firetree.net mailing list
>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
More information about the EventCalendar
mailing list