Google webmasters tools error "lastmod" date not valid

It solves the invalid date error
This commit is contained in:
Michele Palmieri 2016-03-04 02:46:25 +01:00
parent 932da820b4
commit bf4c78d212

View File

@ -25,11 +25,11 @@ class pluginSitemap extends Plugin {
// Create url, loc and lastmod elements
$url = $doc->createElement('url');
$loc = $doc->createElement('loc', $Site->url());
$lastmod = $doc->createElement('lastmod', '');
//$lastmod = $doc->createElement('lastmod', '');
// Append loc and lastmod -> url
$url->appendChild($loc);
$url->appendChild($lastmod);
//$url->appendChild($lastmod);
// Append url -> urlset
$urlset->appendChild($url);
@ -147,4 +147,4 @@ class pluginSitemap extends Plugin {
}
}
}
}