PDA

View Full Version : RSS & feedvalidator.org question



simplistik
November 8th, 2006, 04:55 PM
So I've almost got all my RSS issues worked out except it generates one error:


line 20, column 42: Incorrect day of week: Wed [help]
<pubDate>Wed, 11 Aug 2006 13:48:47 MST</pubDate>


now... upon clicking the help button it sends me to... this nice "help" doc
http://feedvalidator.org/docs/error/IncorrectDOW.html

so... my questions is... what's the flippin difference between what I have... the incorrect example they give... and the correct one. Cause I'm surely not seeing it

bwh2
November 8th, 2006, 05:22 PM
yours is the wrong day of the week. 11 aug 2006 was a friday, not wednesday.

simplistik
November 8th, 2006, 05:57 PM
hmmnnn strange... the dates underneath it are registering just fine

bwh2
November 8th, 2006, 05:59 PM
are the days of the weeks underneath it correct?

simplistik
November 8th, 2006, 06:04 PM
yea everything underneath the first one is correct

simplistik
November 8th, 2006, 06:34 PM
ah, I got it. I'm pulling from my DB and had to declare the years and what not for the day to function correctly, went to php.net and looked at their date functions and figured it out (thank you php.net).


$theDay = date("D", mktime(0, 0, 0, $Month, $Day, $Year));

then just echo it back out where I need it thanks for pointing me in the correct direction bwh

bwh2
November 8th, 2006, 06:53 PM
sweet. yeah, php.net has pretty awesome documentation.