1
MikeOConnor
Trying to get backend.php RSS feeds to pass validation tests at Feed Validator

Hi gang,

I'm trying to get the RSS feed that comes from backend.php to pass the validation tests at Feed Validator

The validator is complaining about the format of the date feeds coming from backend. Here's my backend.php URL

http://www.sexandpodcasting.com/backend.php

(be not concerned about the URL, it's definitely not about sex, and work-safe -- long story)

The problem is that the dates in the XML from my site looks like this;

Mon, 9 May 2005 11:19:28 Central Daylight Time

While the validator wants it to look like this any of these options;

http://www.feedvalidator.org/docs/error/InvalidRFC2822Date.html

The thing it seems to be complaining about is that the timezone is spelled out ("Central Daylight Time") rather than abbreviated ("CDT").

This error probably isn't a really big deal for most folks, but it breaks the date-processing in some feeds that are downstream from me because the feed coming from my site (backend.php) doesn't adhere to the RFC-822 standard.

Is there a setting I can twiddle to get that fixed?

thanks,

m

2
Mithrandir
Re: Trying to get backend.php RSS feeds to pass validation tests at Feed Validator

change the $datestring in the 'rss' case in the formatTimestamp() function in include/functions.php to:
function formatTimestamp($time$format="l"$timeoffset="")
[...]
    case 
'rss':
        
$datestring "r";
[...]

This is fixed in XOOPS 2.1

3
MikeOConnor
Re: Trying to get backend.php RSS feeds to pass validation tests at Feed Validator

Thanks!!

I am a complete nitwit when it comes to PHP and Xoops. Once I've made the change to the file, do I have to do something to get the change to be effective? I know that what you're suggesting will work, because I wrote a little tiny PHP file with just that one line in it, and the date comes back perfect.

But I changed the file in XOOPS and it didn't make a difference to backend.php. I have a feeling I need to do something to make the system suck in the new copy of the /includes/functions.php file, but I'm not sure what to do to "bounce" XOOPS to get it to do that...

4
MikeOConnor
Re: Trying to get backend.php RSS feeds to pass validation tests at Feed Validator

Never mind...

sorry, I should have read the support site about my question.

Went to the Admin page, went into the Modules area, clicked on the "update module" icon in the "action" column and now the change has taken place.

thanks again!

Login

Who's Online

168 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits