问题
In one of my RSS feeds in Yahoo! Pipes, I'm formatting dates using the Date Formatter module and using the format %K so they are pubDate-compliant. In Pipe Output, my four dates appears as follows: Wed, 25 Jul 2012 03:30:00 +0000
, Mon, 16 Jul 2012 06:30:00 +0000
, Wed, 11 Jul 2012 07:00:00 +0000
, and Wed, 27 Jun 2012 13:00:00 +0000
.
However, in the RSS feed output, none of these dates appear. Are they formatted incorrectly? Why does Yahoo! Pipes not output these dates?
回答1:
Okay, so I now realize that I need to output dates to y:published
rather than pubDate
. This doesn't seem to be widely documented. Even Googling y:published
doesn't return many results.
Here are the more detailed steps:
- You have an easy-to-read date such as
8 Jan 2013
in its own field, such aspubDate
(name doesn't matter; it's just used inStep 2
). - Connect your feed to a
Loop
module. Inside that module, put theDate Builder
module, and specify the field where the date is found (such aspubDate
). - Still in the
Loop
module, select "assign results to" and enteritem.y:published
.
That should output the date in the RSS output in the pubDate
field, and it should therefore be readable in any RSS reader.
来源:https://stackoverflow.com/questions/11692791/cant-get-pubdate-to-output-in-yahoo-pipes