You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that sitemap.xml returns "invalid date" errors in a Google Console's sitemap verification tool. I believe this happens because the sitemap uses a wrong datetime separator: dots instead of colons.
Example of the current situation: <url> <loc> https://www.domain.fi/somehting </loc> <lastmod>2023-11-27T06.07.36+00:00</lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url>
That should be (YYYY-MM-DDThh:mm:ss.sTZD): <url> <loc> https://www.domain.fi/somehting </loc> <lastmod>2023-11-27T06:07:36+00:00</lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url>
The text was updated successfully, but these errors were encountered:
@MikeAlhayek the first sample you point to is missing CultureInfo.InvariantCulture. Without it it will use the local culture, which is the issue that is described.
Noticed that sitemap.xml returns "invalid date" errors in a Google Console's sitemap verification tool. I believe this happens because the sitemap uses a wrong datetime separator: dots instead of colons.
Example of the current situation:
<url> <loc> https://www.domain.fi/somehting </loc> <lastmod>2023-11-27T06.07.36+00:00</lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url>
That should be (YYYY-MM-DDThh:mm:ss.sTZD):
<url> <loc> https://www.domain.fi/somehting </loc> <lastmod>2023-11-27T06:07:36+00:00</lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url>
The text was updated successfully, but these errors were encountered: