Author: thomas.heute(a)jboss.com
Date: 2010-11-02 09:08:40 -0400 (Tue, 02 Nov 2010)
New Revision: 4908
Modified:
epp/portal/branches/EPP_5_1_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js
Log:
JBEPP-589: RSS gadget displays wrong publish date
Modified:
epp/portal/branches/EPP_5_1_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js
===================================================================
---
epp/portal/branches/EPP_5_1_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js 2010-11-02
13:07:58 UTC (rev 4907)
+++
epp/portal/branches/EPP_5_1_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator/script.js 2010-11-02
13:08:40 UTC (rev 4908)
@@ -43,7 +43,7 @@
if (isNaN(B)) {
return "an indeterminate amount of time ago"
}
- time = new Date().getTime() / 1000 - B;
+ time = (new Date().getTime() - B) / 1000;
if (time < 60) {
return "less than a minute ago"
} else {
Show replies by date