Skip to content

Commit

Permalink
reproducible zip entry time based on timestamp instead of now
Browse files Browse the repository at this point in the history
this closes #127
  • Loading branch information
hboutemy committed Oct 27, 2019
1 parent 6ffd5e7 commit b9ea3bf
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -853,6 +853,7 @@ protected Date normalizeLastModifiedDate( Date lastModifiedDate )
private static long dosToJavaTime( long dosTime )
{
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis( dosTime );
return dosTime - ( cal.get( Calendar.ZONE_OFFSET ) + cal.get( Calendar.DST_OFFSET ) );
}
}

0 comments on commit b9ea3bf

Please sign in to comment.