diff --git a/lib/zuora/objects/subscribe_request.rb b/lib/zuora/objects/subscribe_request.rb index a60e9d7..c7f30c9 100644 --- a/lib/zuora/objects/subscribe_request.rb +++ b/lib/zuora/objects/subscribe_request.rb @@ -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