View Single Post
  #10 (permalink)  
Old 04-25-2008, 11:19 AM
mihai mihai is offline
New Pligger
 
Join Date: Jun 2007
Posts: 28
Thanks: 1
Thanked 14 Times in 6 Posts
This problem is already fixed in version 0.7

Quote:
Originally Posted by linka View Post
I can confirm that this version also works on 9.8.2

EDIT: There seems to be an error with the time in that Google tells me there is anerror with my date format. I have tried all number of different formats, but am unable to fix it.

The only thing I can do to fix this is to remove the time and change the single quote to double quotes. If you are having this same problem go into xml_sitemaps_main.php

Around line 92 find:

Code:
echo "<lastmod>".date('Y-m-d\TH:i:s',strtotime($r[0]))."</lastmod>";
and replace with:

Code:
echo "<lastmod>".date("Y-m-d",strtotime($r[0]))."</lastmod>";
Around Line 147 find:

Code:
echo "<lastmod>".date('Y-m-d\TH:i:s', $link->modified)."</lastmod>\n";
and replace with:

Code:
echo "<lastmod>".date("Y-m-d", $link->modified)."</lastmod>\n";
and around line 257 find:

Code:
echo "<lastmod>".date('Y-m-d\TH:i:s', $m_time)."</lastmod>\n";
and replace with:

Code:
echo "<lastmod>".date("Y-m-d", $m_time)."</lastmod>\n";
__________________
Patches and Hacks
Reply With Quote