Im using custom field for pubdate, but it doesnt show.
I noticed in my RSS I have this instead:
Wed, 14 Mar 2012 08:00:00 +0800 Wed, 14 Mar 2012 08:00:00 +0800

I use this setting inside the Fields :
Formatter : Date and Time
Choose how users view dates and times: RSS - I use custom RSS format.

Please advise.



maciej.zgadzaj’s picture

Status:Active» Closed (works as designed)

In the module documentation's Setting up core <item> elements it is explained that date in <pubDate> element should be formatted in line with RFC 2822 document.

In RSS specification you can see example format of a date in the feed:

<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>

You need to make sure that you configure your field to output the date in exactly this format. If you can use custom date settings, use PHP's r format character.

shadowhitman’s picture

new13.77 KB

Thank you for time looking into this,
I understand that Content: Post date (Post date) has custom date,
but when I use custom field, and select RSS custom server.
Please see attached image.


maciej.zgadzaj’s picture

The attached image does not work (probably because of the spaces in the file name). Anyway, whatever your field is, you need to make sure that it returns the date in the correct format, as mentioned above, otherwise it will not work properly. If your field does not provide you the custom format option, I guess you could try to play with "Rewrite the output of this field" option, or use custom feed element preprocess function.

4Elemental’s picture

Version:7.x-2.x-dev» 6.x-2.0-rc3
Status:Closed (works as designed)» Active

I'm not sure this is actually behaving as intended. I think shadowhitman may have just dropped the thread. I am seeing the same behavior. Instead of using Node: Post date as indicated in the documentation, I am using a custom date field. So, I created a custom date format named RSS and set the field display format to RSS. It displays the date in the proper format but it is doubled in this fashion (Wed, 14 Mar 2012 08:00:00 +0800 Wed, 14 Mar 2012 08:00:00 +0800) so it isn't recognized by RSS readers. It only occurs once when using a different date format and it works fine when using Node: Post date. The custom date field had the "Default value for To date: " set as "Same as From Date," and I tried changing it to "Blank" and then manipulating some content but that didn't fix it. "To Date" was also set to "Never" under "Global Settings." I tried the "Rewrite" option and that didn't work. I will look into the pre-process function. Let me know if you have any leads. Thank you.

drwits’s picture

Version:6.x-2.0-rc3» 7.x-2.0-rc3

as mentioned above by 4elemental...
I can use the r format with post date but not with a custom date. it prints it twice. i tried using D, M d Y G:i:s O as a custom date format as well but it leaves out the seconds. would love to find a solution to this!!

thanks for the great module.

4Elemental’s picture

Is this module actively maintained? No one is answering questions.

maciej.zgadzaj’s picture

Category:support» feature

Well, it does behave as intended, as it was developed to use Content: Post date for <pubDate> element, not something else.

If it doesn't output dates coming from Date type field in the correct format, I guess this issue should be a feature request then - and in such case obviously patches are welcome (standard procedure with feature requests).

if no-one provides the patch I could add this feature myself once I get some free time to work on this again (which I'm sort of short of recently) and most probably after solving other, more important issues.

4Elemental’s picture

Okay, I guess that it behaves in the way you intended, which makes sense, but it kind of defeats the purpose of being able to use custom fields when you can only use one particular thing for the <pubdate> but can use any custom field for other RSS items. The items that we are trying to use are of a Date type field and are using a date format of r. So, I don't see why they wouldn't work. Technically, they do work, they just output the data twice.

I will try to make time to look at the code and thanks in advance for any help you can provide.

Thanks again for the great module. This functionality really should be inherent in Views.

alodien’s picture

Just wanted to add that I would love to see this change, as well. I haven't had the chance to dig in to the module itself to see how hard it would be to change, but for the current site I am working on it would be extremely useful.

KennyDiggins’s picture

new26.39 KB

I was able to get this working using the r format with following additional options

Formatter: Plain
Display: Start date only

I hope this helps.

maciej.zgadzaj’s picture

Issue summary:View changes
Status:Active» Closed (works as designed)

Closing after long time of no activity.