Fix modified date
This commit is contained in:
parent
ffd79cceb2
commit
43ed8fcf64
1 changed files with 3 additions and 2 deletions
|
@ -8,8 +8,6 @@ import java.io.InputStream;
|
|||
import java.io.OutputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.text.MessageFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
|
@ -260,6 +258,9 @@ public class IndexUploader {
|
|||
while (entries.hasMoreElements()) {
|
||||
ZipEntry entry = entries.nextElement();
|
||||
long lastModified = slastModified;
|
||||
if(entry.getTime() < lastModified) {
|
||||
lastModified = entry.getTime();
|
||||
}
|
||||
File tempFile = new File(f.getParentFile(), entry.getName());
|
||||
InputStream zin = zipFile.getInputStream(entry);
|
||||
FileOutputStream out = new FileOutputStream(tempFile);
|
||||
|
|
Loading…
Reference in a new issue