Browse Source

Minor update to allow compilation on 1.2.2 again:

cal.getTimeInMillis(); is not available.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277180 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 21 years ago
parent
commit
9fdb1c85ba
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/zip/ZipFile.java

+ 1
- 1
src/main/org/apache/tools/zip/ZipFile.java View File

@@ -461,7 +461,7 @@ public class ZipFile {
cal.set(Calendar.HOUR_OF_DAY, (int) (dosTime >> 11) & 0x1f);
cal.set(Calendar.MINUTE, (int) (dosTime >> 5) & 0x3f);
cal.set(Calendar.SECOND, (int) (dosTime << 1) & 0x3e);
return cal.getTimeInMillis();
return cal.getTime().getTime();
}




Loading…
Cancel
Save