Commit e7db0b76 authored by Liang Ding's avatar Liang Ding

时间统一为 24 小时制

parent 5bcd9d60
...@@ -57,7 +57,7 @@ import org.json.JSONObject; ...@@ -57,7 +57,7 @@ import org.json.JSONObject;
* Comment receiver (from B3log Symphony). * Comment receiver (from B3log Symphony).
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.0.10, Nov 20, 2015 * @version 1.1.1.10, Dec 29, 2015
* @since 0.5.5 * @since 0.5.5
*/ */
@RequestProcessor @RequestProcessor
...@@ -217,7 +217,7 @@ public class CommentReceiver { ...@@ -217,7 +217,7 @@ public class CommentReceiver {
final Date date = new Date(); final Date date = new Date();
comment.put(Comment.COMMENT_DATE, date); comment.put(Comment.COMMENT_DATE, date);
ret.put(Comment.COMMENT_DATE, DateFormatUtils.format(date, "yyyy-MM-dd hh:mm:ss")); ret.put(Comment.COMMENT_DATE, DateFormatUtils.format(date, "yyyy-MM-dd HH:mm:ss"));
if (!Strings.isEmptyOrNull(originalCommentId)) { if (!Strings.isEmptyOrNull(originalCommentId)) {
originalComment = commentRepository.get(originalCommentId); originalComment = commentRepository.get(originalCommentId);
if (null != originalComment) { if (null != originalComment) {
......
...@@ -48,7 +48,7 @@ import org.json.JSONObject; ...@@ -48,7 +48,7 @@ import org.json.JSONObject;
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author ArmstrongCN * @author ArmstrongCN
* @version 1.2.1.12, Dec 17, 2015 * @version 1.2.2.12, Dec 29, 2015
* @since 0.3.1 * @since 0.3.1
*/ */
@RequestProcessor @RequestProcessor
...@@ -91,7 +91,7 @@ public class CommentProcessor { ...@@ -91,7 +91,7 @@ public class CommentProcessor {
* { * {
* "oId": generatedCommentId, * "oId": generatedCommentId,
* "sc": "COMMENT_PAGE_SUCC" * "sc": "COMMENT_PAGE_SUCC"
* "commentDate": "", // yyyy/MM/dd hh:mm:ss * "commentDate": "", // yyyy/MM/dd HH:mm:ss
* "commentSharpURL": "", * "commentSharpURL": "",
* "commentThumbnailURL": "", * "commentThumbnailURL": "",
* "commentOriginalCommentName": "" // if exists this key, the comment is an reply * "commentOriginalCommentName": "" // if exists this key, the comment is an reply
...@@ -186,7 +186,7 @@ public class CommentProcessor { ...@@ -186,7 +186,7 @@ public class CommentProcessor {
* { * {
* "oId": generatedCommentId, * "oId": generatedCommentId,
* "sc": "COMMENT_ARTICLE_SUCC", * "sc": "COMMENT_ARTICLE_SUCC",
* "commentDate": "", // yyyy/MM/dd hh:mm:ss * "commentDate": "", // yyyy/MM/dd HH:mm:ss
* "commentSharpURL": "", * "commentSharpURL": "",
* "commentThumbnailURL": "", * "commentThumbnailURL": "",
* "commentOriginalCommentName": "", // if exists this key, the comment is an reply * "commentOriginalCommentName": "", // if exists this key, the comment is an reply
......
...@@ -56,7 +56,7 @@ import org.jsoup.safety.Whitelist; ...@@ -56,7 +56,7 @@ import org.jsoup.safety.Whitelist;
* Comment management service. * Comment management service.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.0.8, Dec 17, 2015 * @version 1.2.1.8, Dec 29, 2015
* @since 0.3.5 * @since 0.3.5
*/ */
@Service @Service
...@@ -389,7 +389,7 @@ public class CommentMgmtService { ...@@ -389,7 +389,7 @@ public class CommentMgmtService {
* @return add result, for example, <pre> * @return add result, for example, <pre>
* { * {
* "oId": "", // generated comment id * "oId": "", // generated comment id
* "commentDate": "", // format: yyyy-MM-dd hh:mm:ss * "commentDate": "", // format: yyyy-MM-dd HH:mm:ss
* "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId" * "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId"
* "commentThumbnailURL": "", * "commentThumbnailURL": "",
* "commentSharpURL": "", * "commentSharpURL": "",
...@@ -430,7 +430,7 @@ public class CommentMgmtService { ...@@ -430,7 +430,7 @@ public class CommentMgmtService {
final Date date = new Date(); final Date date = new Date();
comment.put(Comment.COMMENT_DATE, date); comment.put(Comment.COMMENT_DATE, date);
ret.put(Comment.COMMENT_DATE, DateFormatUtils.format(date, "yyyy-MM-dd hh:mm:ss")); ret.put(Comment.COMMENT_DATE, DateFormatUtils.format(date, "yyyy-MM-dd HH:mm:ss"));
if (!Strings.isEmptyOrNull(originalCommentId)) { if (!Strings.isEmptyOrNull(originalCommentId)) {
originalComment = commentRepository.get(originalCommentId); originalComment = commentRepository.get(originalCommentId);
if (null != originalComment) { if (null != originalComment) {
...@@ -509,7 +509,7 @@ public class CommentMgmtService { ...@@ -509,7 +509,7 @@ public class CommentMgmtService {
* @return add result, for example, <pre> * @return add result, for example, <pre>
* { * {
* "oId": "", // generated comment id * "oId": "", // generated comment id
* "commentDate": "", // format: yyyy-MM-dd hh:mm:ss * "commentDate": "", // format: yyyy-MM-dd HH:mm:ss
* "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId" * "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId"
* "commentThumbnailURL": "", * "commentThumbnailURL": "",
* "commentSharpURL": "", * "commentSharpURL": "",
...@@ -552,7 +552,7 @@ public class CommentMgmtService { ...@@ -552,7 +552,7 @@ public class CommentMgmtService {
final Date date = new Date(); final Date date = new Date();
comment.put(Comment.COMMENT_DATE, date); comment.put(Comment.COMMENT_DATE, date);
ret.put(Comment.COMMENT_DATE, DateFormatUtils.format(date, "yyyy-MM-dd hh:mm:ss")); ret.put(Comment.COMMENT_DATE, DateFormatUtils.format(date, "yyyy-MM-dd HH:mm:ss"));
ret.put(Comment.COMMENT_NAME, commentName); ret.put(Comment.COMMENT_NAME, commentName);
ret.put(Comment.COMMENT_CONTENT, commentContent); ret.put(Comment.COMMENT_CONTENT, commentContent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment