Commit 458b7129 authored by gbyte.co's avatar gbyte.co

Remove use of deprecated date_iso8601()

parent 3bf715f3
......@@ -166,7 +166,7 @@ abstract class SitemapGeneratorBase extends SimplesitemapPluginBase implements S
$this->writer->startElement('sitemap');
$this->writer->writeElement('loc', $this->getCustomBaseUrl()
. '/' . (!$this->isDefaultVariant() ? ($chunk_data->type . '/') : '') . 'sitemap.xml?page=' . $chunk_data->delta);
$this->writer->writeElement('lastmod', date_iso8601($chunk_data->sitemap_created));
$this->writer->writeElement('lastmod', date('c', $chunk_data->sitemap_created));
$this->writer->endElement();
}
......
......@@ -119,7 +119,7 @@ class CustomUrlGenerator extends EntityUrlGeneratorBase {
$path_data = [
'url' => $url_object,
'lastmod' => method_exists($entity, 'getChangedTime')
? date_iso8601($entity->getChangedTime()) : NULL,
? date('c', $entity->getChangedTime()) : NULL,
'priority' => isset($data_set['priority']) ? $data_set['priority'] : NULL,
'changefreq' => !empty($data_set['changefreq']) ? $data_set['changefreq'] : NULL,
'images' => $this->includeImages && !empty($entity)
......
......@@ -179,7 +179,7 @@ class EntityMenuLinkContentUrlGenerator extends EntityUrlGeneratorBase {
$path_data = [
'url' => $url_object,
'lastmod' => !empty($entity) && method_exists($entity, 'getChangedTime')
? date_iso8601($entity->getChangedTime())
? date('c', $entity->getChangedTime())
: NULL,
'priority' => isset($entity_settings['priority']) ? $entity_settings['priority'] : NULL,
'changefreq' => !empty($entity_settings['changefreq']) ? $entity_settings['changefreq'] : NULL,
......
......@@ -161,7 +161,7 @@ class EntityUrlGenerator extends EntityUrlGeneratorBase {
return [
'url' => $url_object,
'lastmod' => method_exists($entity, 'getChangedTime') ? date_iso8601($entity->getChangedTime()) : NULL,
'lastmod' => method_exists($entity, 'getChangedTime') ? date('c', $entity->getChangedTime()) : NULL,
'priority' => isset($entity_settings['priority']) ? $entity_settings['priority'] : NULL,
'changefreq' => !empty($entity_settings['changefreq']) ? $entity_settings['changefreq'] : NULL,
'images' => !empty($entity_settings['include_images'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment