Hi All, 

I am having problem with parsing ISO date formats with apache's XML-RPC
library.

The server is returning the date in this format:

2006-12-16T01:40:27Z. But on encountering this date, the SAX Parser
throws an error:

org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers
response: Failed to parse integer value: 2006-12-16T01:40:27Z

 

When I try to use a custom date type, with the following format:

"yyyy-MM-dd'T'HH:mm:ss'Z'" (Basically ignoring the T and the Z) then the
parsing works fine.

 

I checked the date format, and it conforms to the iso8601 standard, with
the Z signifying UTC time, so I don't want to add my own Date format to
the application (that would basically throw out the time zone
information).

 

Anyone have a workaround this issue? 

 

Regards,

Rahul Pilani

Reply via email to