[dokuwiki] XMLRPC - Date type format

  • From: dominik eckelmann <deckelmann@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 27 May 2010 19:17:31 +0200

Hi again,

i worked some more with the XML RPC backend and noticed DokuWiki uses
1998-07-17T14:08:55 as outputting date.

The XMLRPC spec[1] tells the tag name is <dateTime.iso8601> which
could pointed to a ISO8601[2] datetype (1998-07-17T14:08:55 is
ISO8601).
But the example says 19980717T14:08:55, which is no ISO8601.

So far to the **** spec.

I noticed that originally there was a "19980717T14:08:55"-like
timestamp until chimeric changed[4] it.

My problem is:
I use the apache xml-rpc[3] client library to talk to dokuwiki xmlrpc.
When it parses a dateType it causes a exception caused by wrong date
format.

Imho dokuwiki should use the date format the spec[1] tells.

I append the patch for the change back to a spec conform "pseudo ISO8601".

Greetings from Berlin,
Dominik

[1] http://www.xmlrpc.com/spec
[2] http://en.wikipedia.org/wiki/ISO_8601
[3] http://ws.apache.org/xmlrpc/
[4] 
http://github.com/splitbrain/dokuwiki/commit/5cc966ca519dcf56129c03f01e76acebcf3fb166

Other related posts: