This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]