HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

Extra whitespace in the RFC 822 date format makes the parser not parse it correct #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to parse a feed with the following date format: Wed, 04 Jul 2012 
16:01:30  +0200
This works if the following is used: Wed, 04 Jul 2012 16:01:30 +0200

Only difference between the 2 is  an extra space before the +0200

2. The result of the extra white space means it's not parsed even though the 
date is correct.

What is the expected output? What do you see instead?
The expected output would be a parsed date like other "formal" RFC 822 formats.

What version of the product are you using? On what operating system?
Tested it on mac os x snow leopard and Ubuntu

Please provide any additional information below.
Wed, 04 Jul 2012 16:01:30  +0200 is the date available in the feed.

Original issue reported on code.google.com by dhe...@gmail.com on 5 Jul 2012 at 6:41

GoogleCodeExporter commented 9 years ago
I created a pull request for this issue on github:
https://github.com/kurtmckee/feedparser/pull/7

Original comment by schla...@gmail.com on 7 Sep 2012 at 9:09

GoogleCodeExporter commented 9 years ago
Can you provide a link to the feed that's formatting the dates like this?

Original comment by kurtmckee on 19 Nov 2012 at 4:32

GoogleCodeExporter commented 9 years ago
The feeds have been updated to use a different time format. So no live example 
anymore.

Original comment by dhe...@gmail.com on 25 Nov 2012 at 1:07

GoogleCodeExporter commented 9 years ago
Okay, then I'm going to close this. Feel free to re-open this report if you run 
into any other feeds with this issue!

Original comment by kurtmckee on 9 Dec 2012 at 4:32