pauldix/feedzirra — Issue #90: Override inbuilt parser Element with add_common_feed_entry_element
Author: revathskumar
Created: 2012-02-29 11:11:37+00:00
State: open

Recently When I tried to parse the [feed from santabanta](http://www.santabanta.com/rss/jokes-inmobi.asp) Got issue with

DATE CAN'T BE PARSED: [02/29/2012T 2:59:56 PM]
DATE CAN'T BE PARSED: [02/29/2012T 2:48:30 PM]
DATE CAN'T BE PARSED: [02/28/2012T 7:25:56 PM]
DATE CAN'T BE PARSED: [02/28/2012T 1:38:39 PM]
DATE CAN'T BE PARSED: [02/28/2012T 6:58:35 PM]
DATE CAN'T BE PARSED: [02/29/2012T10:07:24 AM]
DATE CAN'T BE PARSED: [02/28/2012T 9:23:04 AM]
DATE CAN'T BE PARSED: [02/28/2012T12:24:20 PM]
DATE CAN'T BE PARSED: [02/29/2012T12:24:53 AM]
DATE CAN'T BE PARSED: [02/29/2012T12:24:23 AM]

Since they are providing published date in the format "mm/dd/YYYY".

So I thought of override **:published** with **:published_date** to skip the date parsing.

I tried

Feedzirra::Feed.add_common_feed_entry_element(:pubDate, :as => :published_date)
feed = Feedzirra::Feed.fetch_and_parse("http://www.santabanta.com/rss/jokes-inmobi.asp")

But it seems to be the parser is still using **:published**.

#

Is there anyway I can override the existing feed enty elements?