From a322461a92e0d39a02d9ce1bb19aed43075728b0 Mon Sep 17 00:00:00 2001 From: rubiii Date: Mon, 14 Jun 2010 14:19:09 +0200 Subject: [PATCH] fix for issue #53 DateTime.to_soap_value now returns the correct timezone instead of just defaulting to UTC. --- lib/savon/soap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/savon/soap.rb b/lib/savon/soap.rb index 035d169f..b1cbdb81 100644 --- a/lib/savon/soap.rb +++ b/lib/savon/soap.rb @@ -128,7 +128,7 @@ class SOAP ContentType = { 1 => "text/xml", 2 => "application/soap+xml" } # SOAP xs:dateTime format. - DateTimeFormat = "%Y-%m-%dT%H:%M:%SZ" + DateTimeFormat = "%Y-%m-%dT%H:%M:%S%Z" # SOAP xs:dateTime Regexp. DateTimeRegexp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/