Skip to content

Commit

Permalink
Simplify implementation of getting epoch milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlockwood committed Aug 12, 2024
1 parent 7258033 commit 151c7f6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}


Expand Down

0 comments on commit 151c7f6

Please sign in to comment.