File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -322,18 +322,22 @@ Supported date parameters are:
322
322
* ` updated_at_gt `
323
323
* ` updated_at_lt `
324
324
325
+ Ensure that the dates used have to be in UTC timezone.
326
+
325
327
``` php
326
328
use Storyblok\Api\StoriesApi;
327
329
use Storyblok\Api\StoryblokClient;
328
330
use Storyblok\Api\Domain\Value\QueryParameter\PublishedAtGt;
329
331
use Storyblok\Api\Request\StoriesRequest;
330
332
333
+ $dateTime = new \DateTimeImmutable('1969-12-28 12:12:12.425', new \DateTimeZone('UTC'));
334
+
331
335
$client = new StoryblokClient(/* ... */);
332
336
333
337
$storiesApi = new StoriesApi($client);
334
338
$response = $storiesApi->all(new StoriesRequest(
335
339
language: 'de',
336
- publishedAtGt: new PublishedAtGt($date )
340
+ publishedAtGt: new PublishedAtGt($dateTime )
337
341
));
338
342
```
339
343
You can’t perform that action at this time.
0 commit comments