[OGo-XML-RPC] Passing dates from Perl

xmlrpc@opengroupware.org xmlrpc@opengroupware.org
Tue, 27 Jun 2006 14:49:48 +0200


Hello,

I am writing a small Perl script to become familiar with the XML-RPC
API. I am using the RPC::XML::Client package of Perl to get a
connection to the OGo server.

Now, I want to create a task programmatically. But contrary to the
documentation, the xmlrpcd does not seem to accept dates in the format
%Y%m%dT%H%M%S.

In xmlrpcd.log I find the following:
Jun 27 12:32:04 ogo-xmlrpcd-1.1 [3480]: [WARN] <0x08316CE4[LSNewJobCommand]> date command argument 'startDate' is not a date (NSShortInline8BitString): 20060722T10:30:00
Jun 27 12:32:04 ogo-xmlrpcd-1.1 [3480]: [ERROR] <0x08316CE4[LSNewJobCommand]> Could not convert key startDate (NSShortInline8BitString:20060722T10:30:00) to date, format is %Y-%m-%d %H:%M:%S

When I try the format %Y-%m-%d %H:%M:%S, I still get the warning in
the logs and an error on the client side, but the task is created all
right.

Can someone tell me more about this issue? Should I use %Y-%m-%d
%H:%M:%S and ignore the warning, i.e. did the date format change since
the documentation was written (xml-rpc-de.pdf from around 2003)?  Or
is it that the xmlrpcd somehow does not properly convert date strings
into date objects in my setup?

The server is runing OGo-1.1.3 with sope-4.5.6.

Thanks,

        Alex