Join the Webstudio community

Updated 3 months ago

Trouble with XML Sitemaps and Google Search Console

At a glance

The community member is having trouble with XML Sitemaps connected to a CMS in WordPress. Google Search Console is showing an error about an invalid date. The community member is unsure if the issue is with the date provided by Webstudio for static pages or the GMT time WordPress outputs via its REST API. Other community members have provided examples of the date formats they are using, which appear to be in the correct format. One community member suggests the issue may be with the <lastmod>2024-11-18T08:06:23</lastmod> format, while another has changed the date to the static page last modified date instead of using the CMS API. There is no explicitly marked answer, but the community members are trying to troubleshoot the issue.

Useful resources
I've been having some trouble with XML Sitemaps connected to a CMS in WordPress. Google Search Console is showing the error: "An invalid date was found. Please fix the date or formatting before resubmitting."

I'm not sure if the issue is with the date Webstudio provides for static pages or the GMT time WordPress outputs via their REST API. As far as I know, both formats should be compatible with GSC, so I'm a bit confused as to why this error is popping up.

Has anyone come across this issue before or have any insights into what might be causing it?
Attachment
Screenshot_2024-11-19_at_10.01.31_am.png
O
c
8 comments
what's the date look like when rendered in xml?
So the two formats are like this:

<url>
<loc>https://simflowplumbing.com.au</loc>
<lastmod>2024-11-18</lastmod>
</url>
<url>
<loc>https://simflowplumbing.com.au/chatswood-plumbers</loc>
<lastmod>2024-11-18T08:06:23</lastmod>
</url>
ours doesn't have any errors in google console
<lastmod>2024-11-18T08:06:23</lastmod>

this one maybe is the one it doesn't like?
Here is what we output

<lastmod>2024-10-18T09:16:24.000-07:00</lastmod>
Super strange - I've just changed it to the static page last modified date instead of coming directly from the CMS API, i guess that'll do for the time being
Add a reply
Sign up and join the conversation on Discord