diff --git a/src/TurnerSoftware.SitemapTools/Parser/XmlSitemapParser.cs b/src/TurnerSoftware.SitemapTools/Parser/XmlSitemapParser.cs index e967bb2..0d24dd9 100644 --- a/src/TurnerSoftware.SitemapTools/Parser/XmlSitemapParser.cs +++ b/src/TurnerSoftware.SitemapTools/Parser/XmlSitemapParser.cs @@ -75,7 +75,7 @@ private SitemapIndexEntry ParseSitemapIndex(XmlNode sitemapNode) } else if (nodeName.Equals("lastmod", StringComparison.InvariantCultureIgnoreCase)) { - if (DateTime.TryParse(nodeValue, CultureInfo.InvariantCulture, DateTimeStyles.AllowWhiteSpaces, out var tmpLastModified)) + if (DateTime.TryParse(nodeValue, CultureInfo.InvariantCulture, DateTimeStyles.None, out var tmpLastModified)) { result.LastModified = tmpLastModified; } @@ -101,7 +101,7 @@ private SitemapEntry ParseSitemapEntry(XmlNode urlNode) } else if (nodeName.Equals("lastmod", StringComparison.InvariantCultureIgnoreCase)) { - if (DateTime.TryParse(nodeValue, CultureInfo.InvariantCulture, DateTimeStyles.AllowWhiteSpaces, out var tmpLastModified)) + if (DateTime.TryParse(nodeValue, CultureInfo.InvariantCulture, DateTimeStyles.None, out var tmpLastModified)) { result.LastModified = tmpLastModified; }