GraphiQL timezone

Highlighted
Tourist
18 0 0

I'm using GraphiQL to fetch orders.

The dates in the order object are in UTC.

 

I did some research and non of the solutions that you have in the Shopify Community are works.

Please make it clear:

1. how we query date range at the user timezone.

2. how we enforce the results to be in the store timezone.

 

for example,

start date: 2020-06-06T00:00:00+02:00

end date: 2020-06-08T00:00:00+02:00

 

query: 

orders(query:"created_at:>'2020-06-05T22:00:00Z' created_at:<'2020-06-07T22:00:00Z'")

 

currently I convert the dates to UTC - but I want to use the dates in the store timezone.

and I want that the order createdAt  field will be in store timezone.

0 Likes