From 9fdb1c85ba0d2fab36ce8f3b0563f393d955ac9d Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Sun, 12 Dec 2004 20:54:42 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/zip/ZipFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/zip/ZipFile.java b/src/main/org/apache/tools/zip/ZipFile.java index 9b4d15167..fe964d143 100644 --- a/src/main/org/apache/tools/zip/ZipFile.java +++ b/src/main/org/apache/tools/zip/ZipFile.java @@ -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(); }