Welcome to WebmasterWorld Guest from 54.198.222.129

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Google Sitemap Invalid date Error

     
6:33 pm on Jul 2, 2009 (gmt 0)

10+ Year Member



I got this error on my google webmaster panel and cant figure what the problem is, it has to do with the second lastmod date

line 7 Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting.

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap>
<loc>http://www.example.com/sitemap1.xml</loc>
<lastmod>2009-06-28T22:48:03-05:00</lastmod>
</sitemap> <sitemap>
<loc>http://www.example.com/sitemap2.xml</loc>
<lastmod>2009-07-2T13:18:03-05:00</lastmod>
</sitemap><!-- list sitemaps --></sitemapindex>

6:36 pm on Jul 2, 2009 (gmt 0)

10+ Year Member



I am using this code to $time=date("Y-m-j\TH:i:sP"); to get the lastmod date
6:39 pm on Jul 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is the \T being interepreted as a Horizontal Tab instead of the letter T? Or perhaps Google is not recogising the section after the T in the lastmod data?

Regards...jmcc

6:57 pm on Jul 2, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



maybe you should use d instead of j, iirc leading zeros are not optional in the W3C Datetime type.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month