Skip to content

Commit

Permalink
release version 0.0.8 emm forget about version 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lovejjfg committed Feb 9, 2018
1 parent 5d4839d commit 229a275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/lovejjfg/readhub/utils/DateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public static String parseTime(String date) {
SimpleDateFormat sdf = initDateFormat();
Date d = sdf.parse(date);
String s = DateUtils.getRelativeTimeSpanString(d.getTime(), System.currentTimeMillis(), DateUtils.MINUTE_IN_MILLIS).toString();
if (!TextUtils.isEmpty(s) && (s.startsWith("0分钟"))) {
if (!TextUtils.isEmpty(s) && s.startsWith("0分钟")) {
return "刚刚";
}
if (!TextUtils.isEmpty(s) && TextUtils.equals("0 minutes ago", s)) {
return "just now";
if (!TextUtils.isEmpty(s) && s.startsWith("0 minutes")) {
return "Just Now";
}
return s;
} catch (Exception e) {
Expand Down

0 comments on commit 229a275

Please sign in to comment.