How to Show Dates in RSSboxes

2011-01-17 | Category: Features (19)

If you want add a date or time to your RSSbox you have to use one of our premium templates:

  • Tabloid Extended (can be used as a vertical list if the number of columns is set to 1)
  • Ticker Box Extended
  • Naked HTML

These box types contain a date option in the tab "Content and Styling Options" in the box administration. There you can even choose your preferred timezone and a date or time format that fits your needs.

If you are not a premium user yet you can test-drive our premium service for free here.

Why is my box showing a date in 1969 or 1970?

Sometimes it happens that RSSboxes show dates from long time ago although the articles of the feed have just been published. In this case it is possible that your feed does not contain any date information. If our service does not find any date information it assumes that the date of each item is zero. And for computers, zero very often is January, 1 of the year 1970.

The following code shows a feed item NOT containing any date information:

<item>
<title>Lorem ipsum dolor si aptem</title>
<description><![CDATA[Nulla consectetur magna.]]></description>
<link>http://www.testsite.com/blog/?p=61</link>
</item>
 

The feed item above does not contain date information. If you want your RSSbox to show the correct dates you have to add a pubDate element to each feed item. Here is how it should look like:

<item>
<title>Lorem ipsum dolor si aptem</title>
<pubDate>Tue, 23 Nov 2010 23:00:00 +0000</pubDate>
<description><![CDATA[Nulla consectetur magna.]]></description>
<link>http://www.testsite.com/blog/?p=61</link>
</item>
 

The difference between the above rss source code snippets is the use of the pubDate tag. If you insert the pubDate tag like this our service (and all other feedreaders) knows when your article has been published and shows the correct date. Read more about the pubDate tag here.