#24: Corrected date format of last modified date in sitemap.xml

This commit is contained in:
Andy Heathershaw 2017-09-05 22:27:55 +01:00
parent 39b9df0032
commit 0c1ff083f6

View File

@ -111,7 +111,7 @@ class DefaultController extends Controller
if (strlen($lastModifiedDate) > 0) if (strlen($lastModifiedDate) > 0)
{ {
$lastModElement = $document->createElement('lastmod', $lastModifiedDate); $lastModElement = $document->createElement('lastmod', date('Y-m-d\TH:i:s+00:00', strtotime($lastModifiedDate)));
$urlElement->appendChild($lastModElement); $urlElement->appendChild($lastModElement);
} }