โ06-14-2021 09:40 AM
As per ShipStation API docs
https://www.shipstation.com/docs/api/requirements/#datetime-format-and-time-zone
We are converting order date and shipBy date in PST/PDT format and sending it to the shipstation. When the shipstation displays shipBy date on UI it is not showing in the configured time zone and causing time discrepancy.
Sending Date in create order API request to Shipstation PST/PDT timezone:
POST https://ssapi.shipstation.com/orders/createorder
"orderDate":"2021-06-16 07:30:00",
"shipByDate":"2021-06-16 07:30:00"
Getting API response from Shipstation GET order:
GET ssapi.shipstation.com/orders/5659834
"orderDate":"2021-06-16T07:30:00.0000000"
"shipByDate":"2021-06-16T07:30:00.0000000"
Shipstation Displays on UI:
Order Date :17/06/21
Ship By : 16/06/21
Shipstation getting data for UI from backend:
"orderDateTime":"2021-06-16T14:30:00Z"
"shipByDateTime":"2021-06-16T07:30:00Z"
Configured Time Zone in Shipstation UI: AEST
Please find the attached screenshots for reference.
โ06-15-2021 08:21 AM - edited โ06-15-2021 08:22 AM
Well documented - good find. I would suggest reaching out to the support team and opening a ticket with them to get this resolved quickest!