From: James Edward Gray II Date: 2007-02-20T22:53:20+09:00 Subject: Re: Trouble with xmlrpc --Apple-Mail-1-398867583 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Feb 17, 2007, at 2:59 AM, Alex Young wrote: > James Edward Gray II wrote: >> OK, my second point aside, is there any reason we shouldn't handle >> DateTime as we do Time, instead of the current Date handling which >> drops information? I really feel we should fix that at least. > Yes please! I was a little surprised to find that it wasn't > handled already. Below is a patch for this issue. CHANGELOG: Adding DateTime support to xmlrpc. James Edward Gray II --Apple-Mail-1-398867583 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=xmlrpc_datetime.patch Content-Disposition: attachment; filename=xmlrpc_datetime.patch Index: lib/xmlrpc/create.rb =================================================================== --- lib/xmlrpc/create.rb (revision 11805) +++ lib/xmlrpc/create.rb (working copy) @@ -241,7 +241,7 @@ @writer.ele("data", *a) ) - when Time, Date + when Time, Date, DateTime @writer.tag("dateTime.iso8601", param.strftime("%Y%m%dT%H:%M:%S")) when XMLRPC::DateTime --Apple-Mail-1-398867583--