[gatein-commits] gatein SVN: r3002 - portal/branches/EPP_5_0_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu May 6 13:45:39 EDT 2010


Author: thomas.heute at jboss.com
Date: 2010-05-06 13:45:38 -0400 (Thu, 06 May 2010)
New Revision: 3002

Modified:
   portal/branches/EPP_5_0_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js
Log:
JBEPP-340: RSS Gadget has wrong published date for feeds


Modified: portal/branches/EPP_5_0_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js
===================================================================
--- portal/branches/EPP_5_0_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js	2010-05-06 17:40:37 UTC (rev 3001)
+++ portal/branches/EPP_5_0_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js	2010-05-06 17:45:38 UTC (rev 3002)
@@ -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);



More information about the gatein-commits mailing list