Skip to content

Commit

Permalink
2.1.63
Browse files Browse the repository at this point in the history
  • Loading branch information
HartwigThomas committed Jun 27, 2019
1 parent 3bffaef commit 3942312
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions test/ch/enterag/utils/zip/zip64Tester.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3942312

Please sign in to comment.