mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 369672. Feed preview doesn't show dates when the timezone is specified as UTC rather than GMT. Patch by Michael Ventnor <ventnor.bugzilla@yahoo.com.au>. r=sayrer
This commit is contained in:
parent
cbfee6fb22
commit
923cbd1585
@ -770,7 +770,7 @@ function trimString(s) {
|
||||
const RFC822_RE = "^((Mon|Tue|Wed|Thu|Fri|Sat|Sun)([a-z]+)?,? *)?\\d\\d?"
|
||||
+ " +(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)([a-z]+)?"
|
||||
+ " +\\d\\d(\\d\\d)? +\\d?\\d:\\d\\d(:\\d\\d)?"
|
||||
+ " +([+-]?\\d\\d\\d\\d|GMT|UT|(E|C|M|P)(ST|DT)|[A-IK-Z])$";
|
||||
+ " +([+-]?\\d\\d\\d\\d|GMT|UT[C]?|(E|C|M|P)(ST|DT)|[A-IK-Z])$";
|
||||
|
||||
/**
|
||||
* XXX -- need to decide what this should return.
|
||||
|
12
toolkit/components/feeds/test/xml/rss2/feed_pubDate_utc.xml
Normal file
12
toolkit/components/feeds/test/xml/rss2/feed_pubDate_utc.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!--
|
||||
|
||||
Description: Test whether new regexp handles irregular dates.
|
||||
Expect: feed.updated == 'Monday, 16 April 2007 03:12:45 UTC'
|
||||
|
||||
-->
|
||||
<rss version="2.0" >
|
||||
<channel>
|
||||
<pubDate>Monday, 16 April 2007 03:12:45 UTC</pubDate>
|
||||
</channel>
|
||||
</rss>
|
Loading…
Reference in New Issue
Block a user