Author: johnh
Date: Wed May 6 00:13:10 2009
New Revision: 772018
URL: http://svn.apache.org/viewvc?rev=772018&view=rev
Log:
Return Date in seconds rather than millis from _IG_FetchFeedAsJSON (legacy API).
Resolves SHINDIG-1045.
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/core/legacy.js
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/core/legacy.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/core/legacy.js?rev=772018&r1=772017&r2=772018&view=diff
==============================================================================
---
incubator/shindig/trunk/features/src/main/javascript/features/core/legacy.js
(original)
+++
incubator/shindig/trunk/features/src/main/javascript/features/core/legacy.js
Wed May 6 00:13:10 2009
@@ -114,6 +114,10 @@
entry.Date = entry.pubDate;
}
}
+ for (var ix = 0; ix < resp.data.Entry.length; ++ix) {
+ var entry = resp.data.Entry[ix];
+ entry.Date = (entry.Date / 1000); // response in sec, not ms
+ }
// for Gadgets back-compatibility, return the feed obj directly
callback(resp.data);
}, params);