Thanks Kero,
That was correct.
Here is the final code that works
"datePublished": "{{post.date|date('c')}}",
Here is the link
How to format a datetime object to ISO 8601 in Twig
Thank you.
Thanks Kero,
That was correct.
Here is the final code that works
"datePublished": "{{post.date|date('c')}}",
Here is the link
How to format a datetime object to ISO 8601 in Twig
Thank you.