Order > Receive a list of all Orders - Datetimes and Timezones

Shopify Partner
3 0 0
Hi, Firstly, I wanted to point out that in the documentation you have made a small mistake with the date format: there should be a 'T' separating date and time, not a space. I have some questions about the datetimes entered: If a datetime is entered without a timezone offset, is that datetime considered to be in GMT or the store's timezone? I noticed that adding negative timezone offsets to the datetimes seems to work, but adding positive ones doesn't. Is this intentional or perhaps it is not the '+' sign for positive offsets? If a timezone offset is specified, is the date then considered to be in GMT? Thank you, Lech
0 Likes
Shopify Staff
Shopify Staff
195 0 3

Hi Lech,

That’s a good point about the docs; definitely a point we need to polish up.

About the date format: if you just take a reasonably formatted date/time string and http-query-escape it, you’ll get the right results, so something like


# where we want updated_at_min = "2005-07-31 19:57:11" 
http://awesome.myshopify.com/admin/orders.xml?updated_at_min=2005-07-31+15%3A57%3A11

About the timezone stuff:

Edward Ocampo-Gooding – Shopify Developer Advocate
0 Likes
Shopify Partner
3 0 0

Thank you.

Lech

0 Likes