Permalink
Browse files

We'll do all the time to UTC conversions internally to keep things

consistent and reliable.

I think that was everything
  • Loading branch information...
1 parent 455597b commit 8fa56573eb761204da2d08beccac846fc6f3e656 csaunders committed May 16, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/active_fulfillment/fulfillment/services/amazon_mws.rb
  2. +1 −1 test/remote/amazon_mws_test.rb
@@ -276,6 +276,7 @@ def parse_error(http_response)
response[:status] = FAILURE
response[:faultcode] = error_code ? error_code.text : ""
response[:faultstring] = error_message ? error_message.text : ""
+ response[:response_message] = error_message ? error_message.text : ""
response[:response_comment] = "#{response[:faultcode]}: #{response[:faultstring]}"
response
rescue REXML::ParseException => e
@@ -346,7 +347,7 @@ def build_fulfillment_request(order_id, shipping_address, line_items, options)
:SellerFulfillmentOrderId => order_id.to_s,
:DisplayableOrderId => order_id.to_s,
:DisplayableOrderComment => options[:comment],
- :DisplayableOrderDateTime => options[:order_date],
+ :DisplayableOrderDateTime => options[:order_date].utc.iso8601,
:ShippingSpeedCategory => options[:shipping_method]
}
request = build_basic_api_query(params.merge(options))
@@ -7,7 +7,7 @@ def setup
@options = {
:shipping_method => 'Standard',
- :order_date => Time.now.utc.yesterday.iso8601,
+ :order_date => Time.now.utc.yesterday,
:comment => "Delayed due to tornadoes"
}

0 comments on commit 8fa5657

Please sign in to comment.