• My generated XML shows for the homepage:
    LastChange (GMT) 1999-11-30 00:00

    …hmmm

    any recommendation?
    Thank you!

Viewing 1 replies (of 1 total)
  • cos-min

    (@cos-min)

    Line: if($this->_lastMod>0) $r.= “\t\t<lastmod>” . date(‘Y-m-d\TH:i:s+00:00’,$this->_lastMod) . “</lastmod>\n”;
    Becomes: if($this->_lastMod>0) $r.= “\t\t<lastmod>” . $thedate . “</lastmod>\n”;

    And before this line I’ve added: ( 943920000 means 1999-11-30 00:00 ) -> If date equals 1999-11-30 00:00 then print XML sitemap generated time.

    Line 1: if ( $this->_lastMod == “943920000” ) { $thedate = date(‘Y-m-d\TH:i:s+00:00’,time()); }
    Line 2: else { $thedate = date(‘Y-m-d\TH:i:s+00:00’,$this->_lastMod); }

    Edit file: wp-content/plugins/google-sitemap-generator/sitemap-core.php

    Check http://www.pacific54.com/sitemap.xml

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google XML Sitemaps] LastChange – 1999-11-30 00:00’ is closed to new replies.