소스 검색

修改评论的时间为24小时制

zengjiebin 7 년 전
부모
커밋
adc2878bfd

+ 2 - 2
app/src/main/java/com/sheep/gamegroup/view/adapter/AdpArticleComment.java

@@ -72,9 +72,9 @@ public class AdpArticleComment extends BaseQuickAdapter<UserComment, BaseViewHol
         ViewUtil.setText(article_comment_num3, item.getExpression());
         ViewUtil.setText(article_comment_user_name, item.getNickname());
         if(total == 0){
-            ViewUtil.setText(article_comment_time_tv, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020hh:mm"));
+            ViewUtil.setText(article_comment_time_tv, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020HH:mm"));
         } else {
-            ViewUtil.setText(article_comment_time_tv, String.format(Locale.CHINA, "%d楼\u3000%s", total - position, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020hh:mm")));
+            ViewUtil.setText(article_comment_time_tv, String.format(Locale.CHINA, "%d楼\u3000%s", total - position, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020HH:mm")));
         }
         //String.format(Locale.CHINA, "%d %d %d %d", position, helper.getAdapterPosition(), helper.getLayoutPosition(), helper.getOldPosition()));
         TextViewUtil.initIntroView(helper.itemView, item.getShowAll());

+ 2 - 2
app/src/main/java/com/sheep/gamegroup/view/adapter/AdpGcGameAppComment.java

@@ -64,9 +64,9 @@ public class AdpGcGameAppComment extends BaseQuickAdapter<UserComment, BaseViewH
         game_app_comment_score.setMax(10);
         ViewUtil.setText(game_app_comment_user_name, item.getNickname());
         if(total == 0){
-            ViewUtil.setText(game_app_comment_time_tv, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020hh:mm"));
+            ViewUtil.setText(game_app_comment_time_tv, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020HH:mm"));
         } else {
-            ViewUtil.setText(game_app_comment_time_tv, String.format(Locale.CHINA, "%d楼\u3000%s", total - position, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020hh:mm")));
+            ViewUtil.setText(game_app_comment_time_tv, String.format(Locale.CHINA, "%d楼\u3000%s", total - position, TimeUtil.TimeStamp2Date(item.getCreate_time(), "yyyy-MM-dd\u0020HH:mm")));
         }
         //String.format(Locale.CHINA, "%d %d %d %d", position, helper.getAdapterPosition(), helper.getLayoutPosition(), helper.getOldPosition()));
         TextViewUtil.initIntroView(helper.itemView, item.getShowAll());