Activity Service - fix postDate to be ISO8601 format for JSON feed

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10965 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-09-22 15:23:25 +00:00
parent d508953c26
commit b568a69e38

View File

@@ -26,6 +26,7 @@ package org.alfresco.repo.activities.feed;
import java.util.Date; import java.util.Date;
import org.alfresco.util.ISO8601DateFormat;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@@ -161,7 +162,7 @@ public class ActivityFeedDAO
JSONObject jo = new JSONObject(); JSONObject jo = new JSONObject();
jo.put("postUserId", postUserId); jo.put("postUserId", postUserId);
jo.put("postDate", postDate); jo.put("postDate", ISO8601DateFormat.format(postDate));
if (feedUserId != null) { jo.put("feedUserId", feedUserId); } // eg. site feed if (feedUserId != null) { jo.put("feedUserId", feedUserId); } // eg. site feed
jo.put("siteNetwork", siteNetwork); jo.put("siteNetwork", siteNetwork);
jo.put("activityType", activityType); jo.put("activityType", activityType);