Skip to content

Commit

Permalink
fix for issue savonrb#53
Browse files Browse the repository at this point in the history
DateTime.to_soap_value now returns the correct timezone instead of just defaulting to UTC.
  • Loading branch information
rubiii committed Jun 14, 2010
1 parent 761d534 commit a322461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/savon/soap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}/
Expand Down

0 comments on commit a322461

Please sign in to comment.