[OGo-XML-RPC] Re: Passing dates from Perl
xmlrpc@opengroupware.org
xmlrpc@opengroupware.org
Tue, 27 Jun 2006 16:19:41 +0200
Helge Hess <helge.hess@opengroupware.org> writes:
> On Jun 27, 2006, at 14:49, alex.lists@freenet.de wrote:
>> 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.
>
> You need to submit proper XML-RPC date values, not strings.
>
Ahh, I see. I have to wrap the arguments into XML-RPC types.
For the record, in Perl you can do this like so:
use RPC::XML qw/RPC_DATETIME_ISO8601 time2iso8601/;
$time = RPC_DATETIME_ISO8601 "20060701T17:00:00";
Thanks again,
Alex