Author: thomas.heute(a)jboss.com
Date: 2010-05-06 13:40:37 -0400 (Thu, 06 May 2010)
New Revision: 3001
Modified:
portal/trunk/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js
Log:
GTNPORTAL-1167: RSS Gadget has wrong published date for feeds
Modified: portal/trunk/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js
===================================================================
---
portal/trunk/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js 2010-05-06
15:59:04 UTC (rev 3000)
+++
portal/trunk/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js 2010-05-06
17:40:37 UTC (rev 3001)
@@ -43,7 +43,7 @@
if (isNaN(B)) {
return "an indeterminate amount of time ago"
}
- time = (new Date().getTime() - B) / 1000;
+ time = new Date().getTime() / 1000 - B;
if (time < 60) {
return "less than a minute ago"
} else {
@@ -119,7 +119,6 @@
item_title.innerHTML = bullet + "<a
id='link_title_"+i+"' class='titlelink' href='" +
feed.Entry[i].Link + "'
onclick='rssAggregator.toggleDescription("+i+");return false;'>"
+ feed.Entry[i].Title + "</a>";
item_date.innerHTML = this.timeToPrettyString(feed.Entry[i].Date);
-
item_desc.innerHTML = feed.Entry[i].Summary;
item_link.innerHTML = this.generateLinkContent(i);
Show replies by date