Menu

#87 backend.php doesn't meet RSS standards - dates

XOOPS_2.0_RC3_(old)
closed
nobody
5
2012-09-25
2003-04-30
No

In order to meet RSS standards, dates need to be
generated as RFC-822. xoops v 2.0.3 generates dates
that are very close to standard, however the hours need
to be 2 digit - military time - to be 100% compliant.

From the stardard doc located
http://www.faqs.org/rfcs/rfc822.html.

  1. DATE AND TIME SPECIFICATION

    5.1. SYNTAX

    date-time = [ day "," ] date time ; dd mm yy
    ; hh:mm:ss zzz

    day = "Mon" / "Tue" / "Wed" / "Thu"
    / "Fri" / "Sat" / "Sun"

    date = 1*2DIGIT month 2DIGIT ; day
    month year
    ; e.g. 20 Jun 82

    month = "Jan" / "Feb" / "Mar" / "Apr"
    / "May" / "Jun" / "Jul" / "Aug"
    / "Sep" / "Oct" / "Nov" / "Dec"

    time = hour zone ; ANSI and
    Military

    hour = 2DIGIT ":" 2DIGIT [":" 2DIGIT]
    ; 00:00:00 - 23:59:59

    zone = "UT" / "GMT" ; Universal
    Time
    ; North American : UT
    / "EST" / "EDT" ; Eastern: - 5/ -
    4
    / "CST" / "CDT" ; Central: - 6/ -
    5
    / "MST" / "MDT" ; Mountain: -
    7/ - 6
    / "PST" / "PDT" ; Pacific: - 8/ - 7
    / 1ALPHA ; Military: Z = UT;
    ; A:-1; (J not used)
    ; M:-12; N:+1; Y:+12
    / ( ("+" / "-") 4DIGIT ) ; Local differential
    ; hours+min. (HHMM)

This is invalid:
<lastBuildDate>Mon, 28 Apr 2003 1:29:04
MDT</lastBuildDate>

You can use http://feeds.archive.org/validator/ - RSS
Validator to validate your feeds.

THANKS!

SS

Discussion

  • Kazumi Ono

    Kazumi Ono - 2003-05-02

    Logged In: YES
    user_id=669367

    thanks, it has been fixed on cvs now.

     
  • Stephen Sweeney

    Stephen Sweeney - 2003-05-02

    Logged In: YES
    user_id=728032

    could you send me the link to the file?

    I don't see the updated file in the CVS tree.

     

Log in to post a comment.