This fixes PR23854 in the most part.  The value from the
file is in seconds, Calendar and friends use milliseconds.

Changelog:

2007-10-07  Andrew John Hughes  <[EMAIL PROTECTED]>

        PR classpath/23854:
        * java/util/zip/ZipEntry.java:
        (parseExtra()): Pass time to setTime in milliseconds
        rather than seconds by multiplying by 1000.

-- 
Andrew :-)

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
Index: java/util/zip/ZipEntry.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/zip/ZipEntry.java,v
retrieving revision 1.19
diff -u -3 -p -u -r1.19 ZipEntry.java
--- java/util/zip/ZipEntry.java	30 Aug 2005 21:47:44 -0000	1.19
+++ java/util/zip/ZipEntry.java	7 Oct 2007 18:13:26 -0000
@@ -357,7 +357,7 @@ public class ZipEntry implements ZipCons
 			    | (extra[pos+2] & 0xff) << 8
 			    | (extra[pos+3] & 0xff) << 16
 			    | (extra[pos+4] & 0xff) << 24);
-		    setTime(time);
+		    setTime(time*1000);
 		  }
 	      }
 	    pos += len;

Attachment: signature.asc
Description: Digital signature

Reply via email to