uhaciogullari / SimpleMvcSitemap

A minimalist library for creating sitemap files inside ASP.NET MVC and ASP.NET Core MVC applications
MIT License
128 stars 39 forks source link

Output format of LastModificationDate is incorrect. #24

Closed xiaoxin01 closed 6 years ago

xiaoxin01 commented 6 years ago

Hi,

I found that the lastmod format is like this:

<lastmod>2017-10-25T00:00:00</lastmod>

Google search console said this format is incorrect. The correct format need to be W3C Datetime. Witch can find here

https://www.w3.org/TR/NOTE-datetime

The example date format:

1994-11-05T13:15:30Z

So need to add 'Z' at the end of output?

uhaciogullari commented 6 years ago

Hi @xiaoxin01

This issue was raised before. You can easily fix it by converting the date to local date.