[kronolith] DateTime types in xml_rpc

Chuck Hagenbuch chuck at horde.org
Sun Apr 20 12:32:36 PDT 2003


Quoting Matthew Sackman <matthew at sackman.co.uk>:

> Well I've managed to hack it to work.
> In kronolith/lib/api.php in function _kronolith_list, add in:
>     @define('KRONOLITH_BASE', dirname(__FILE__) . '/..');
>     require_once KRONOLITH_BASE . '/lib/base.php';
>
> Then, after the checks for the $startDate and $endDate, simply add:
>     $startDate = Kronolith::timestampToObject($startDate);
>     $endDate = Kronolith::timestampToObject($endDate);
>
> So that allows one to supply the timestamps and indeed it does work.
> I've no idea what else that breaks though... ;)

Pretty much anything else using the API. I've modified
Kronolith::listEvents() so it'll take a timestamp or an object (you can,
btw, just pass the API a struct with year, month, and mday elements, and it
will work as-is). Try my commit.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"... It is not more light we need, but more warmth! We die of cold, not of
darkness. It is not the night that kills, but the frost." - Miguel de
Unamuno


More information about the kronolith mailing list