This is an automated email from the ASF dual-hosted git repository. peterlee pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push: new 1cdf4ed use System.currentTimeMillis instead of new Date().getTime new a212dd4 Merge pull request #110 from XenoAmess/use_System_currentTimeMillis_insteadof_Date_getTime 1cdf4ed is described below commit 1cdf4eda2273473a9e046d0f0f9e3a984fedb63a Author: XenoAmess <xenoam...@gmail.com> AuthorDate: Fri Jun 5 03:50:01 2020 +0800 use System.currentTimeMillis instead of new Date().getTime --- .../java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java index d562336..dfbe4ee 100644 --- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java +++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java @@ -294,7 +294,7 @@ public class TarArchiveEntry implements ArchiveEntry, TarConstants { this.name = name; this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE; this.linkFlag = isDir ? LF_DIR : LF_NORMAL; - this.modTime = new Date().getTime() / MILLIS_PER_SECOND; + this.modTime = System.currentTimeMillis() / MILLIS_PER_SECOND; this.userName = ""; }