Improve shipment formatter performance
Use #strftime instead of #iso8601 for faster shipment formatting
This commit is contained in:
parent
283a6a5c50
commit
a09cecacb7
@ -15,7 +15,7 @@ module PlanetExpress
|
||||
end
|
||||
|
||||
def format_valid_shipment(shipment)
|
||||
date = shipment.date.iso8601
|
||||
date = shipment.date.strftime("%Y-%m-%d")
|
||||
package_size = shipment.shipping_option.package_size
|
||||
provider = shipment.shipping_option.provider
|
||||
price = shipment.price_with_discounts
|
||||
|
Loading…
Reference in New Issue
Block a user