[Bug java/19649] New: java.util.Date.getTimezoneOffset returns negated output

2005-01-26 Thread walters at redhat dot com
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


[Bug java/19649] java.util.Date.getTimezoneOffset returns negated output

2005-01-26 Thread walters at redhat dot com

--- Additional Comments From walters at redhat dot com  2005-01-27 00:39 
---
Created an attachment (id=8077)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8077&action=view)
correctly negate getTimezoneOffset


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19649


[Bug libgcj/19649] java.util.Date.getTimezoneOffset returns negated output

2005-01-28 Thread walters at redhat dot com

--- Additional Comments From walters at redhat dot com  2005-01-28 20:16 
---
Yeah, I'm almost positive it's the cause.  At least I narrowed down this
behavior difference in JDK versus gcj, but it's possible there's another bug in
there.

Is the test suite patch for mauve?  I think they'd be interested in that.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19649