[Mediawiki-l] Problem with GoogleSitemap Script

Robert Pfau robert.pfau at gmail.com
Sat Mar 4 03:17:41 UTC 2006

thanks, now i know why it is happening.
i use php4.3 but the iso8601-argument only exists since php5

so this is my fix:
line ~ 400:
function fileEntry( $url, $date, $priority ) {
            "\t<url>\n" .
            "\t\t<loc>$url</loc>\n" .
            "\t\t<lastmod>".date("Y-m-d",$date)."</lastmod>\n" .
            "\t\t<priority>$priority</priority>\n" .

thats it :) ok, no exact time, but it works :)


>That looks like a Unix timestamp, commonly used for simple time 
>differentials in PHP.  It's the current date and time as expressed in 
>the number of seconds since the Unix Epoch (Midnight, January 1st, 
>1970).  I'm not familiar with the script itself, but it looks to me as 
>though whichever part of the script is generating the timestamp (with 
>the date() command, probably) isn't running it through an interpretation 
>string to turn out the correct format of date.
>Robert Pfau wrote:
>>I tried to use the generateSitemap.php script
>>It is working, it just gives out the wrong timestamp
>>According to Google a timestamp should look like this (ISO8601)
>>But it looks like this
>>I tried it in an 1.5.4 and in a cvs environment.
>>Both times the same result. An obviously correct sitemap with
>>wrong timestamps.
>>i used this cvs-version
>>cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/wikipedia
>>checkout -P phase3
>>what could it be ? anyone got a similar effect ?
>>thanks in advance
>>MediaWiki-l mailing list
>>MediaWiki-l at Wikimedia.org
>MediaWiki-l mailing list
>MediaWiki-l at Wikimedia.org

More information about the MediaWiki-l mailing list