Skip to content

Commit

Permalink
Update ShipDate handling in GetRatesRequest
Browse files Browse the repository at this point in the history
Modified the ShipDate property to use the shipping date
from shipment.Options instead of the current UTC time.
This change improves accuracy in shipping date management
based on user input.
  • Loading branch information
Brandon Moffett committed Jan 14, 2025
1 parent d45f1d5 commit 9f00f17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public async Task<Shipment> GetRatesAsync(Shipment shipment,RateContactInfo rate
{
var rateRequest = new GetRatesRequest()
{
ShipDate = DateTime.Now.ToUniversalTime().ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
ShipDate = shipment.Options.ShippingDate.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'"),
ShipTo = new Abstractions.OpenApis.V2.Shipping.Address()
{
AddressLine1 = shipment.DestinationAddress.StreetLine,
Expand Down

0 comments on commit 9f00f17

Please sign in to comment.