EKsumic's Blog

let today = new Beginning();

Click the left button to use the catalog.

OR

Google Console 提交Sitemap出错,日期无效怎么解决?

Google Console 提交Sitemap出错,日期无效怎么解决?

报错:
发现无效日期。请修正日期或格式,然后重新提交。

详细信息:
父标记:url
标记:lastmod


根据《国际标准ISO 8601》 

日期格式标准应该是2020-04-20的表示方法。

2020-4-20(×)
2020-04-2(×)
2020-4-2(×)
2020-04-20(√)

请检查Sitemap的日期是否正确,

像我就这样了,

样图

 

我用的国内网站的Sitemap生成工具,这个生成的Sitemap可能适用于百度爬虫,

改动的话,其实Ctrl+H就行了,

Replace

因为我发现日期都是一样的,

要是不一样的话,自己写正则表达式改吧。

 

 

参考资料:

[1] google sitemap中“发现无效日期”问题的解决方法
[2] 求助:google sitemap 的错误提示,怎么解决?

This article was last edited at 2020-07-01 22:18:43

* *