Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Passing dates from Perl: msg#00009

cms.opengroupware.xmlrpc.devel

Subject: Passing dates from Perl

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

--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation