From 7b5d9d70860a5441b8084c255b2fc493418f0baf Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 21 Jun 2006 05:13:48 +0000 Subject: * parse.y (method_call): remove (fn)(args) style lambda invocation, add fn.(args) instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/xmlrpc/create.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/xmlrpc/create.rb') diff --git a/lib/xmlrpc/create.rb b/lib/xmlrpc/create.rb index 0bfa4ab551..9150e2f56f 100644 --- a/lib/xmlrpc/create.rb +++ b/lib/xmlrpc/create.rb @@ -241,12 +241,7 @@ module XMLRPC @writer.ele("data", *a) ) - when Date - t = param - @writer.tag("dateTime.iso8601", - format("%.4d%02d%02dT00:00:00", t.year, t.month, t.day)) - - when Time + when Time, Date @writer.tag("dateTime.iso8601", param.strftime("%Y%m%dT%H:%M:%S")) when XMLRPC::DateTime -- cgit v1.2.3