优化代码

This commit is contained in:
DESKTOP-G8BCEP0\HP 2021-07-30 16:07:27 +08:00
parent 3f78152a37
commit fd100a5785

View File

@ -126,8 +126,8 @@ public class DateTimeUtil {
* @return * @return
*/ */
public static LocalDateTime timeMillisToTime(long timeMillis) { public static LocalDateTime timeMillisToTime(long timeMillis) {
LocalDateTime dateTime =LocalDateTime.ofEpochSecond(timeMillis,0, DEFAULT_ZONE_OFFSET); LocalDateTime localDateTime = LocalDateTime.ofEpochSecond(timeMillis, 0, ZoneOffset.ofHours(8));
return dateTime; return localDateTime;
} }
/** /**