mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user