Why the sitemap's date is all today?

For example:

 

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<url>

<loc>https://www.insoler.com/m/news/view/14650596086548</loc>

<lastmod>2018-04-25</lastmod>

<changefreq>monthly</changefreq>

<priority>0.8</priority>

</url>

 

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<url>

<loc>https://www.insoler.com/m/articles/view/13528259079847</loc>

<lastmod>2018-04-25</lastmod>

<changefreq>monthly</changefreq>

<priority>0.8</priority>

</url>

 

Not only news and articles, including members, forums, Photos, albums <lastmod> all are today!
The description of <lastmod> on sitemaps.org official website is...
 

The date of last modification of the file. This date should be in W3C Datetime format. This format allows you to omit the time portion, if desired, and use YYYY-MM-DD.

Note that this tag is separate from the If-Modified-Since (304) header the server can return, and search engines may use the information from both sources differently.

 

Lastmod's date seems to be the last update date, not all set today? How do modify the bxdolsitemaps.php _getdatetimestamp to fix this problem?

 

    protected function _getDateTimeStamp ($a)

    {

        if ('datetime' == $this->_aQueryParts['field_date_type'])

            return 0 === strncmp('0000-00-00', $a[$this->_aQueryParts['field_date']], 10) ? time() : strtotime($a[$this->_aQueryParts['field_date']]);

        else

            return 0 == $this->_aQueryParts['field_date'] ? time() : $a[$this->_aQueryParts['field_date']];

    }

https://www.insoler.com/ The first community site supports RAW photo formats !
Quote · 24 Apr 2018
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.