[dev] kronolith ical DURATION

Justus Pendleton justus-sender-0c5c46 at ryoohki.net
Fri Feb 13 15:34:20 PST 2004


I tried using some of the shared calendars on www.icalshare.com in Kronolith
with little success.  The first problem I've found is that kronolith doesn't
understand the DURATION tag.  Attached is a patch that fixes this.

* Add a new field to the $hash generated by icalendar.php in framework with name
'duration'
* During Driver.fromHash check for the existence of this hash entry and use it
to setEndTimestamp
* I don't think Data/imc.php:importData was doing the right thing with the call
to _build, so I changed it to do what I think it should be doing.  If I'm
misunderstanding it, ignore that part of the patch...it is unrelated to the
DURATION stuff.

A quick search on google turned up http://phpicalendar.sourceforge.net/nuke/
which seems to have more featureful and robust ical parsing than kronolith
currently does...I don't know how feasible it would be to let a third party
like that handle ical parsing though.

--
Justus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: framework.diff
Type: text/x-diff
Size: 1649 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040213/3358bc67/framework.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: driver.diff
Type: text/x-diff
Size: 1211 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040213/3358bc67/driver.bin


More information about the dev mailing list