summaryrefslogtreecommitdiff
path: root/lib/xmlrpc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmlrpc')
-rw-r--r--lib/xmlrpc/create.rb7
1 files changed, 1 insertions, 6 deletions
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