优化代码

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
*/
public static LocalDateTime timeMillisToTime(long timeMillis) {
LocalDateTime dateTime =LocalDateTime.ofEpochSecond(timeMillis,0, DEFAULT_ZONE_OFFSET);
return dateTime;
LocalDateTime localDateTime = LocalDateTime.ofEpochSecond(timeMillis, 0, ZoneOffset.ofHours(8));
return localDateTime;
}
/**