< prev index next >

src/java.base/share/classes/java/util/zip/ZipOutputStream.java

Print this page
rev 11478 : 8073497: Lazy conversion of ZipEntry time
Reviewed-by: TBD

@@ -391,11 +391,11 @@
 
         // keep a copy of dostime for writeCEN(), otherwise the tz
         // sensitive local time entries in loc and cen might be
         // different if the default tz get changed during writeLOC()
         // and writeCEN()
-        xentry.dostime = javaToDosTime(e.time);
+        xentry.dostime = e.time;
 
         writeInt(LOCSIG);               // LOC header signature
         if ((flag & 8) == 8) {
             writeShort(version(e));     // version needed to extract
             writeShort(flag);           // general purpose bit flag
< prev index next >