Skip to content
Browse files

fixing the calculation of shipping dates

  • Loading branch information...
1 parent 7c1094f commit b3639706dbaff8db54879dfd0abf42605586270f @peterjm peterjm committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_shipping/shipping/carriers/fedex.rb
View
2 lib/active_shipping/shipping/carriers/fedex.rb
@@ -391,7 +391,7 @@ def ship_timestamp(delay_in_hours)
def ship_date(delay_in_hours)
delay_in_hours ||= 0
- Date.today + (delay_in_hours / 24).days
+ (Time.now + delay_in_hours.hours).to_date
end
def response_status_node(document)

0 comments on commit b363970

Please sign in to comment.
Something went wrong with that request. Please try again.