[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sb-rss.el date oddities
- From: David Hansen <david.hansen@xxxxxxx>
- Date: Tue, 25 Jan 2005 09:56:15 +0100
- X-ml-name: emacs-w3m
- X-mail-count: 07435
Hello,
`shimbun-rss-process-date' expects ISO 8601 date but RSS 2.0
allows RFC 822 dates: http://blogs.law.harvard.edu/tech/rss
E.g. the theregister.co.uk RSS sets <pubDate> in the format
<pubDate>Mon, 24 Jan 2005 22:11:15 GMT</pubDate>
and `shimbun-rss-process-date' returns just "2005". Maybe one
should extend the date regexp to "^\\(...)" (note the '^') and
return (or date "") if `date' doesn't match.
So there is the possibility that a MUA has to deal with screwed
dates but i guess all MUAs have some way to deal with broken
headers.
David