Trouble with XML Sitemaps and Google Search Console
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.
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?
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