Can't get pubDate to output in Yahoo! Pipes?

故事扮演 提交于 2020-01-02 05:27:12

问题


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:

  1. You have an easy-to-read date such as 8 Jan 2013 in its own field, such as pubDate (name doesn't matter; it's just used in Step 2).
  2. Connect your feed to a Loop module. Inside that module, put the Date Builder module, and specify the field where the date is found (such as pubDate).
  3. Still in the Loop module, select "assign results to" and enter item.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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!