[gatein-commits] gatein SVN: r4908 - epp/portal/branches/EPP_5_1_Branch/gadgets/eXoGadgets/src/main/webapp/gadgets/rssAggregator.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Nov 2 09:08:40 EDT 2010
Author: thomas.heute at 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 {
More information about the gatein-commits
mailing list