Re: Using POGI to get appointments out of OGo
Adam Tauno Williams <[email protected]> Tue, 20 Sep 2005 17:06:18 -0400
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Organization | Morrison Industries |
| Message-ID | <[email protected]> |
> >I'm trying to use POGI to get appointments out of OGo onto my webpage, but
> >everything I get is this error from the xmlrpcd:
> I'm just guessing, but I had similar problem when I used an incorrect
> date format. You should try something like this '20050726T07:00:00',
> which is defined in the XML-RPC standard and conforms to ISO or ANSI or
> somewhat.
You shouldn't have to pass ugly XML-RPC dates to POGI. Whatever PHP's
strtotime will parse should work correctly.
In OGoAppointmentManager
/// \brief Get appointments between (inclusively) two dates
/// \param _startDate
/// \param _endDate
/// \note Invokes the appointment.fetch RPC method
/// \todo Remove RPC processing into OGoFetchSpec or OGoServer
function getBetween($_startDate, $_endDate) {
$this->traceMessage('@OGoAppointmentManager:getBetween');
$startDate = XML_RPC_iso8601_encode(strtotime($_startDate));
$endDate = XML_RPC_iso8601_encode(strtotime($_endDate));
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc