[kronolith] DateTime types in xml_rpc

Matthew Sackman matthew at sackman.co.uk
Sat Apr 19 17:44:56 PDT 2003


Hi all,

Sorry, but I keep seeming to come up against problem after problem and I
keep checking the archives but to no avail.

I'm trying to use the calendar.list function which takes startTime,
endTime, an array of calendars to check and the recurrance boolean. How
do I express the start and end dates? I'm using the dateTime.iso8601
format but it really isn't working:
---- request ----
<?xml version="1.0"?>
<methodCall>
<methodName>calendar.list</methodName>
<params>
<param><value><dateTime.iso8601>20020419T235959</dateTime.iso8601></value>
</param>
<param><value><dateTime.iso8601>20040519T235959</dateTime.iso8601></value>
</param>
<param><value><array><data>
<value><string>test</string></value>
</data></array></value>
</param>
</params>
</methodCall>
---- response ----
<br />
<b>Notice</b>:  Undefined property:  mday in
<b>/home/horde/horde/kronolith/lib/Driver/sql.php</b> on line
<b>70</b><br />
<br />
<b>Notice</b>:  Undefined property:  month in
<b>/home/horde/horde/kronolith/lib/Driver/sql.php</b> on line
<b>70</b><br />
<br />
<b>Notice</b>:  Undefined property:  year in
<b>/home/horde/horde/kronolith/lib/Driver/sql.php</b> on line
<b>70</b><br />
<br />
<b>Notice</b>:  Undefined property:  month in
<b>/home/horde/horde/kronolith/lib/Driver/sql.php</b> on line
<b>78</b><br />

etc etc - these errors go on for some time. I'm guessing that I'm not
expressing the dates correctly. I've tried putting a Z at the end as per
the iCal RFCs but that doesn't help. It would seem that the objects are
not being constructed.

Any clues gratefully received.

Incidentally, I'm more than willing to provide some solid documentation
on interfacing with the horde xml rpc layer once I have a solid working
client here.

Thanks,

Matthew
-- 
Matthew Sackman

BOFH excuse #270:
Someone has messed up the kernel pointers


More information about the kronolith mailing list