#24: Corrected date format of last modified date in sitemap.xml
This commit is contained in:
parent
39b9df0032
commit
0c1ff083f6
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user