aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Quinn <jlquinn@optonline.net>2004-06-06 20:52:10 +0000
committerJerry Quinn <jlquinn@gcc.gnu.org>2004-06-06 20:52:10 +0000
commit648b6075b27f942672d0665619acf58747768fd4 (patch)
tree03b2b302e0d2a0d94ee536bafe29541e9e918bee
parent37f40c9cfd5acd2f5cf508e0a4d31611373a7bc5 (diff)
downloadgcc-648b6075b27f942672d0665619acf58747768fd4.zip
gcc-648b6075b27f942672d0665619acf58747768fd4.tar.gz
gcc-648b6075b27f942672d0665619acf58747768fd4.tar.bz2
ZipEntry.java (setTime): Remove scaling.
2004-06-06 Jerry Quinn <jlquinn@optonline.net> * java/util/zip/ZipEntry.java (setTime): Remove scaling. From-SVN: r82674
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/java/util/zip/ZipEntry.java5
2 files changed, 6 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 38c41b6..091a2dc 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-06 Jerry Quinn <jlquinn@optonline.net>
+
+ * java/util/zip/ZipEntry.java (setTime): Remove scaling.
+
2004-06-05 Michael Koch <konqueror@gmx.de>
* javax/swing/SwingConstants.java
diff --git a/libjava/java/util/zip/ZipEntry.java b/libjava/java/util/zip/ZipEntry.java
index 3f7f643..aa14bd2 100644
--- a/libjava/java/util/zip/ZipEntry.java
+++ b/libjava/java/util/zip/ZipEntry.java
@@ -1,5 +1,5 @@
/* java.util.zip.ZipEntry
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -168,7 +168,7 @@ public class ZipEntry implements ZipConstants, Cloneable
Calendar cal = getCalendar();
synchronized (cal)
{
- cal.setTime(new Date(time*1000L));
+ cal.setTime(new Date(time));
dostime = (cal.get(Calendar.YEAR) - 1980 & 0x7f) << 25
| (cal.get(Calendar.MONTH) + 1) << 21
| (cal.get(Calendar.DAY_OF_MONTH)) << 16
@@ -176,7 +176,6 @@ public class ZipEntry implements ZipConstants, Cloneable
| (cal.get(Calendar.MINUTE)) << 5
| (cal.get(Calendar.SECOND)) >> 1;
}
- dostime = (int) (dostime / 1000L);
this.known |= KNOWN_TIME;
}