Skip to content

Commit

Permalink
We'll do all the time to UTC conversions internally to keep things
Browse files Browse the repository at this point in the history
consistent and reliable.

I think that was everything
  • Loading branch information
jiblits committed May 18, 2012
1 parent 455597b commit 8fa5657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/active_fulfillment/fulfillment/services/amazon_mws.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion test/remote/amazon_mws_test.rb
Expand Up @@ -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"
}

Expand Down

0 comments on commit 8fa5657

Please sign in to comment.