Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve Orders with UTC false #76

Open
Noido opened this issue Apr 21, 2020 · 2 comments
Open

Retrieve Orders with UTC false #76

Noido opened this issue Apr 21, 2020 · 2 comments

Comments

@Noido
Copy link

Noido commented Apr 21, 2020

@slince
Hi i try retrieve orders so i put for sample :

$pagination = $client->getOrderManager()->paginate([
'limit'=>250,
'created_at_min' =>'2020-04-20T00:00:00Z',
'created_at_max'=> '2020-04-20T23:59:59Z',
'status' => 'any'
]);

I got all orders of 2020-04-20 but i got also order like

2020-04-21 01:26:43.0 +02:00

So can you explain me how i can get only order between 00:00 and 23:59 UTC ?

When i test on https://mysite.myshopify.com/admin/api/2020-04/orders.json?created_at_max=2020-04-20T23%3A59%3A59Z&created_at_min=2020-04-20T00%3A00%3A00Z&limit=250

It works fine so problem must be with Shopify-api-php

Regards

@slince
Copy link
Owner

slince commented Apr 21, 2020

hello, can you modify the version of API you use and try again

$client = new Slince\Shopify\Client($credential, 'your-store.myshopify.com', [
    'metaCacheDir' => './tmp'
    'apiVersion' => '2020-04'
]);

@Noido
Copy link
Author

Noido commented Apr 22, 2020

Juste change in 04 but same problem

Thanks for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants