Commit 9187fea96e8741f19a377606ff20545c5cd24a2e
1 parent
dc7e1124
朋友圈创建时间修改
Showing
1 changed file
with
4 additions
and
4 deletions
src/main/java/com/cnlive/shenhe/api/ContentControllerApi.java
| ... | ... | @@ -131,8 +131,8 @@ public class ContentControllerApi { |
| 131 | 131 | shyContent1.setShenhe_type(CommonConst.AUDIT_TYPE_USER);//审核类型是人工 |
| 132 | 132 | String contentTime = json.getString("createTime");//朋友圈内容创建时间 |
| 133 | 133 | if (CommonUtils.isNotEmpty(contentTime)) { |
| 134 | - Date timestamp = CommonUtils.getTimestamp(contentTime, "yyyy-MM-dd HH:mm:ss"); | |
| 135 | - shyContent1.setContent_time(timestamp); | |
| 134 | +// Date timestamp = CommonUtils.getTimestamp(contentTime, "yyyy-MM-dd HH:mm:ss"); | |
| 135 | + shyContent1.setContent_time(new Date(Long.valueOf(contentTime))); | |
| 136 | 136 | |
| 137 | 137 | } |
| 138 | 138 | shyContent1.setCreate_date(CommonUtils.getCurrentTime()); |
| ... | ... | @@ -161,8 +161,8 @@ public class ContentControllerApi { |
| 161 | 161 | shyContent.setContent_status(1);//当前朋友圈内容的审核状态,先发后审 |
| 162 | 162 | String contentTime = json.getString("createTime");//创建时间 |
| 163 | 163 | if (CommonUtils.isNotEmpty(contentTime)) { |
| 164 | - Date timestamp = CommonUtils.getTimestamp(contentTime, "yyyy-MM-dd HH:mm:ss"); | |
| 165 | - shyContent.setContent_time(timestamp); | |
| 164 | +// Date timestamp = CommonUtils.getTimestamp(contentTime, "yyyy-MM-dd HH:mm:ss"); | |
| 165 | + shyContent.setContent_time(new Date(Long.valueOf(contentTime))); | |
| 166 | 166 | |
| 167 | 167 | } |
| 168 | 168 | shyContent.setCreate_date(CommonUtils.getCurrentTime()); | ... | ... |