[Bug java/19649] New: java.util.Date.getTimezoneOffset returns negated output
walters at redhat dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 27 00:38:00 GMT 2005
Hi,
Here is a simple test:
public final class Test {
public static void main(String[] args) {
System.out.println(new Date(5).getTimezoneOffset());
}
}
On gcj on my system, this returns -300. On the JDK, it returns 300. Attached
is a simple patch which shoudl correct the problem.
--
Summary: java.util.Date.getTimezoneOffset returns negated output
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: walters at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19649
More information about the Gcc-bugs
mailing list