Skip to content

Commit b9ea3bf

Browse files
committed
reproducible zip entry time based on timestamp instead of now
this closes #127
1 parent 6ffd5e7 commit b9ea3bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java

+1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ protected Date normalizeLastModifiedDate( Date lastModifiedDate )
853853
private static long dosToJavaTime( long dosTime )
854854
{
855855
Calendar cal = Calendar.getInstance();
856+
cal.setTimeInMillis( dosTime );
856857
return dosTime - ( cal.get( Calendar.ZONE_OFFSET ) + cal.get( Calendar.DST_OFFSET ) );
857858
}
858859
}

0 commit comments

Comments
 (0)