Fix regression introduced in pack200 in 996801

git-svn-id: https://svn.apache.org/repos/asf/harmony/enhanced/java/trunk@1049577 13f79535-47bb-0310-9956-ffa450edef68
master
Sian January 14 years ago
parent b0c99a58bb
commit 230debbf6b
  1. 3
      src/main/java/org/apache/harmony/pack200/FileBands.java

@ -22,6 +22,7 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.TimeZone;
import org.apache.harmony.pack200.Archive.PackingFile;
import org.apache.harmony.pack200.Archive.SegmentUnit;
@ -92,7 +93,7 @@ public class FileBands extends BandSet {
totalSize += file_size[i];
// update modification time
modtime = (packingFile.getModtime()) / 1000L;
modtime = (packingFile.getModtime() + TimeZone.getDefault().getRawOffset()) / 1000L;
file_modtime[i] = (int) (modtime - archiveModtime);
if (isLatest && latestModtime < file_modtime[i]) {
latestModtime = file_modtime[i];

Loading…
Cancel
Save