mirror of
https://github.com/skogaby/butterfly.git
synced 2026-04-24 07:27:13 -05:00
Fix time conversion
This commit is contained in:
parent
07394c3c17
commit
2f60c44c7a
|
|
@ -16,7 +16,7 @@ public class TimeUtils {
|
|||
* @return
|
||||
*/
|
||||
public static LocalDateTime timeFromEpoch(final long millis) {
|
||||
final Instant instant = Instant.ofEpochSecond(millis);
|
||||
final Instant instant = Instant.ofEpochMilli(millis);
|
||||
|
||||
return instant.atZone(ZoneId.systemDefault()).toLocalDateTime();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user