This caused time to be shifted by the time zone.

This commit is contained in:
szymon 2020-07-09 21:03:30 +02:00
parent e2102900ed
commit f5d9947929

View File

@ -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) {