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

Date/timeformat is incorrect #37

Closed leonfranken closed 4 years ago

leonfranken commented 4 years ago

Hello Ufuk,

The date/timeformat for the "lastmod"-tag is incorrect. The current implementation outputs "2019-11-15T09:40:00". This should be a date "2019-11-15" or a datetime with a timezone "2019-11-15T09:40:00Z". The timezone (in the example the "Z") is missing in the current version of the package!

Also take a look at these webpages: https://www.w3.org/TR/NOTE-datetime https://www.sitemaps.org/protocol.html

Can you fix this in the next version?

Kind regards, Leon

uhaciogullari commented 4 years ago

Duplicate of #16