diff --git a/vfs-azure/src/main/java/com/dalet/vfs2/provider/azure/AzFileObject.java b/vfs-azure/src/main/java/com/dalet/vfs2/provider/azure/AzFileObject.java index 5e2658f..8ce00ae 100644 --- a/vfs-azure/src/main/java/com/dalet/vfs2/provider/azure/AzFileObject.java +++ b/vfs-azure/src/main/java/com/dalet/vfs2/provider/azure/AzFileObject.java @@ -349,14 +349,7 @@ protected long doGetLastModifiedTime() { return 0; } - return epocToMilli(getBlobProperties().getLastModified()); - } - - private long epocToMilli(OffsetDateTime offsetDateTime) { - - Date date = Date.from(offsetDateTime.toInstant()); - - return date.getTime(); + return getBlobProperties().getLastModified().toInstant().toEpochMilli(); }