API Time Zones

Highlighted
Shopify Partner
1 0 0

Actually I a bit confused about time zone in the record and how API Its work
My Shopify time zone is (GMT+08:00) Asia/Singapore4.PNG
and this is my record [pic 1]

1.PNG
"created_at": "2019-02-18T12:35:43+08:00",
"updated_at": "2019-02-18T12:35:44+08:00",

Then I try to call an API like this 
https://animo-nation.myshopify.com/admin/orders.json?updated_at_min=2019-02-18T12:00:00+08:00
but I got [pic 2]2.PNG
{
"orders": []
}

but if i call like this https://animo-nation.myshopify.com/admin/orders.json?updated_at_min=2019-02-18T04:00:44+08:00
I will get the record [pic 3]3.PNG

It's seem like you keep data same time zone that I set on shop endpoint but when we call an API we have to call like UTC time?

0 Likes
Highlighted
New Member
2 0 0

Hi @acomstaging_Adm ,

did you understand how it works? I am getting strange results using Orders API even using the correct GMT for my shop (GMT-05:00 - America/New_York in my case).  I never get the exact same number of orders showed in the Reports Analytics page on Shopify Admin Page. 

Thanks for any help you can share with me!

Cheers!

0 Likes