Order Creation date pulled via Orders API is in the future

Topic summary

Issue: Orders pulled via Shopify’s Orders API show a created_at timestamp that appears one day ahead of the date shown in the Shopify admin UI.

Details:

  • For “today’s” orders, the API’s created_at in the JSON appears as “tomorrow.”
  • Example: API shows 2022-05-10 23:31:44, while the Shopify backend displays May 9, 2022 at 6:31 am for the same order.
  • created_at refers to the order’s creation timestamp returned by the API.

Context: Orders are being retrieved via the Orders API and examined directly in the returned JSON versus the Shopify backend.

Status: The user is seeking an explanation for the discrepancy. No cause, solution, or action items have been provided yet; the question remains open and unresolved.

Summarized with AI on February 18. AI used: gpt-5.

We are pulling orders from Shopify using Shopify’s Order API.

When inspecting the JSON, we see that orders that are from today have a “created_at” date of tomorrow.

For example, one order has this date in the JSON we pull from the API: 2022-05-10 23:31:44

And this is the date we getting when looking at the order thru Shopify’s backend: May 9, 2022 at 6:31 am

Any clues on what is going on?

Thanks in advance!