Date error
-
Hello
I am getting following error when creating Google News sitemap using your plugin.
An invalid date was found. Please fix the date or formatting before resubmitting.
You can see it in screenshot below
Upon looking into the issue, turns out your plugin is generating timezone part in wrong format
Example of what is generated by plugin
<news:publication_date>2022-06-05T19:21:07+0000</news:publication_date>
What it should look like to comply with Google
<news:publication_date>2022-06-05T19:21:07+00:00</news:publication_date>
The difference is in the last part in the date
From
+0000
To +00:00“:” is missing. Can you please fix this?
- The topic ‘Date error’ is closed to new replies.