Skip to content

Commit

Permalink
format dates properly for subscribe request subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoline committed Jun 18, 2012
1 parent bd97d1e commit 3fde3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zuora/objects/subscribe_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def generate_payment_method(builder)

def generate_subscription(builder)
subscription.to_hash.each do |k,v|
builder.__send__(ons, k.to_s.camelize.to_sym, v) unless v.nil?
builder.__send__(ons, k.to_s.camelize.to_sym, (v.is_a?(Date) ? v.to_datetime.strftime("%FT%T%:z") : v)) unless v.nil?
end
end

Expand Down

0 comments on commit 3fde3b9

Please sign in to comment.