心动空间
This commit is contained in:
@@ -189,7 +189,7 @@ public class TimeUtils {
|
||||
}
|
||||
public static String getDateToStringNoZ(long time) {
|
||||
Date d = new Date(time);
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
return sf.format(d);
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ public class TimeUtils {
|
||||
}
|
||||
|
||||
// 如果天数不足1天,根据需求可以返回空字符串,也可以返回 "0天" 或其他
|
||||
return ""; // 或者 return "0天";
|
||||
return "1天"; // 或者 return "0天";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user