You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by Jim Blos <ji...@gmail.com> on 2006/09/20 16:14:24 UTC
Unparseable date: "2006-09-30T13:47:49"?
Hello,
I'm having a little problem with a date format which i receive from windows
live writer beta. When i look in the standards (of the communication
protocol that live writer uses) the date should be ISO.8601, but it seems to
fail when apache's xmlrpc server tries to parse the date:
org.apache.xmlrpc.ParseFailed: Unparseable date: "2006-09-30T13:47:49"
Is this a date format which the xmlrpc doesn't support?
Thanks,
Jim
Re: Unparseable date: "2006-09-30T13:47:49"?
Posted by Jochen Wiedmann <jo...@gmail.com>.
On 9/20/06, Jim Blos <ji...@gmail.com> wrote:
> org.apache.xmlrpc.ParseFailed: Unparseable date: "2006-09-30T13:47:49"
The XML-RPC specification specifies a really ugly format: It ought to be
20060930T13:47:49
which is neither ISO.8601 compliant nor anything else I am aware of.
If you need to be able to parse such dates, then you've got to provide
a custom TypeFactory. Create a subclass of TypeFactoryImpl and
overwrite the method getParser().
Jochen
--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlrpc-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org