How do I convert edd range (like 4-5) into the actual dates for /carrier response so delivery options would show the same values (4-5) after shopify converts it back into the x-y range? Currently there is a 1-day shift for some countries between (guess it’s due to the UTC offset, but would like some details, like does the time matter, or if only passing dates may be enough?)
tldr - how does start_date/end_date from /carrier response are being converted into the day range by Shopify?
Shopify expects min_delivery_date/max_delivery_date as a full timestamp with an explicit UTC offset, like 2013-04-12 14:48:45 -0400, not a bare date. If you’re only sending the date with no offset, Shopify has to assume one when converting it back to a range, which would explain the 1-day shift on some countries. Worth adding an explicit offset per destination and retesting.