I am trying to print out the last modified time of a file. Somehow, the timestamp returned is incorrect and different from the system time.
Files.getLastModifiedTime(Paths.get(directory, filename))
which prints
2019-01-14T11:48:47.312493Z
System time is in fact:
LocalDateTime.now() <- 2019-01-14T19:48:50.495242600
How can I overcome this problem and make getLastModifiedTime returns the time in my local timezone?