This caused time to be shifted by the time zone.
This commit is contained in:
parent
e2102900ed
commit
f5d9947929
@ -66,7 +66,7 @@ public class Utilities {
|
||||
|
||||
try {
|
||||
FileTime fileTime = (FileTime) Files.getAttribute(file.toPath(), "creationTime");
|
||||
creationTime = LocalDateTime.ofInstant(fileTime.toInstant(), ZoneOffset.UTC);
|
||||
creationTime = LocalDateTime.ofInstant(fileTime.toInstant(), ZoneOffset.systemDefault());
|
||||
} catch (IOException ignored) {}
|
||||
|
||||
if(creationTime == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user