Details
Description
In the Moodle RSS, the zone format of pubDate is incorrect
outside North America. If the time zone is set to JST (Japan
Standard Time), say, pubDate shows the JST time.
RFC822 (obsolete) states:
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)
and RFC2822 (which obsoletes RFC822) states:
zone = (( "+" / "-" ) 4DIGIT) / obs-zone
At any rate JST must not be used; GMT may be used, but the
RFC2822 form is preferable.
Can someone look at this please?
We have a client here in the UK using RSS feeds, and they have also noticed that the RSS Feed pubdate is in incorrect format - if you try and validate the feed using (for example) the W3C rss feed validator, it complains:
line 20, column 44: pubDate must be an RFC-822 date-time: Tue, 16 Sep 2008 09:23:22 BST
The help attached to it states:
Message
element must be an RFC-822 date-time
Explanation
Invalid date-time. The value specified must meet the Date and Time specifications as defined by RFC822, with the exception that the year should be expressed as four digits.
Solution
Change the date-time format to comply with RFC822. Here are examples of valid RFC822 date-times:
<pubDate>Wed, 02 Oct 2002 08:00:00 EST</pubDate>
<pubDate>Wed, 02 Oct 2002 13:00:00 GMT</pubDate>
<pubDate>Wed, 02 Oct 2002 15:00:00 +0200</pubDate>
Common errors include localizing the month name or the days of the week, not using the exact abbreviation provided by the specification, or attempting to use a time zone name that is not listed. See Section 5.1 for the list of allowable values for these portions of the date.
Here is an example of an invalid RFC822 date-time. This is commonly seen in RSS 1.0 feeds generated by older versions of Movable Type:
<pubDate>2002-10-02T08:00:00-05:00</pubDate>
So presumably it does not like the BST?
This is fairly urgent.
Sean K