优化代码
This commit is contained in:
parent
3f78152a37
commit
fd100a5785
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user