Wrong <pubDate> in RSS Feed, TimeOffset != 0

Found a bug? Tell us!!
Post Reply
johncanary
Regular
Posts: 116
Joined: Mon Aug 20, 2007 4:00 am
Location: Spain
Contact:

Wrong <pubDate> in RSS Feed, TimeOffset != 0

Post by johncanary »

The <pubDate> entities in the in RSS Feed (I only dealt with RSS2) is not
correct, when TimeOffset in the Admin Panel is different from 0.

Observed in S9Y V1.3.1.

www.feedvalidator.org complains about a non-plausible date (it's in the future). Not an error, but a hick-up.
(I tried yesterday. The service seems not working properly today)
validator.w3.org/feed/ doesn't seem to care about the date.

Some Test Blog with a fresh 1.3.1 installation
Time-Offset in the Admin Panel is set for +8 hours
and works fine otherwise.

The server seems to be configured correctly, the php functions
date() and gmdate() return the correct time and timezones.

I posted something at 05 Jun 2008 17:53:07 +0100
is 16:53:07 +0000

The RSS2 feed looks like this:

Code: Select all

<channel>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 06 Jun 2008 00:53:07 GMT</pubDate>
!! That's the future date! (hint: 16+8 = 0 +1d)

Code: Select all

<item>
    <description></description>
    <content:encoded></content:encoded>
    <pubDate>Thu, 05 Jun 2008 17:53:07 -0700</pubDate>
!! (Hint: time is local, but timezone is of the server, which gives 06 Jun 2008 00:53:07 GMT)

That means the dates are in the future, shifted by the configured (positive) time-offset. Do I see this correctly?

Yours
JohnCanary

P.S.: Some other improvement tips for RSS2
RSS2 feed: Possible improvements. (I just posted this, too.)
Yours John
: John's Google+ Profile
: John's E-Biz Booster Blog powered by Serendipity 1.7/PHP 5.3.14
Post Reply