diff --git a/src/META-INF/MANIFEST.MF b/src/META-INF/MANIFEST.MF index c33cff4..cfc460c 100644 --- a/src/META-INF/MANIFEST.MF +++ b/src/META-INF/MANIFEST.MF @@ -3,8 +3,8 @@ Created-By: Hartwig Thomas, Enter AG, Zurich, Switzerland Specification-Title: ZIP64 Specification-Version: 1.0 Implementation-Title: Zip64 -Implementation-Version: 2.1.62 +Implementation-Version: 2.1.63 Implementation-Vendor: Enter AG, RĂ¼ti ZH, Switzerland -Built-Date: 19. Jun 2019 +Built-Date: 27. Jun 2019 Main-Class: ch.enterag.zip.zip64 Class-Path: ../lib/enterutils.jar diff --git a/test/ch/enterag/utils/zip/zip64Tester.java b/test/ch/enterag/utils/zip/zip64Tester.java index 7bfe474..1743282 100644 --- a/test/ch/enterag/utils/zip/zip64Tester.java +++ b/test/ch/enterag/utils/zip/zip64Tester.java @@ -468,9 +468,10 @@ else if (sEntry.equals("full/full.txt")) sOutput = sOutput.substring(iPosition+2); /* 2 seconds is maximum resolution of DOS date */ boolean bDateIncorrect = true; - for (long lTime = 2000*(long)Math.floor(fileEntry.lastModified()/2000.0); bDateIncorrect && (lTime <= 2000*(long)Math.ceil(fileEntry.lastModified()/2000.0)); lTime = lTime + 1L) + double dLastModifiedSec = fileEntry.lastModified()/1000.0; + for (long lTime = (long)Math.floor(dLastModifiedSec-2.0); bDateIncorrect && (lTime <= (long)Math.ceil(dLastModifiedSec+2.0)); lTime = lTime + 1L) { - String sFileDate = DATE_FORMAT.format(new Date()); + String sFileDate = DATE_FORMAT.format(new Date(1000*lTime)); if (!sOutput.startsWith(sFileDate)) bDateIncorrect = false; }