1
0

Improve shipment formatter performance

Use #strftime instead of #iso8601 for faster shipment formatting
This commit is contained in:
Tim Kächele 2021-11-22 18:35:20 +01:00
parent 283a6a5c50
commit a09cecacb7

View File

@ -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