public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/11941] New: gcj handles timezones wrongly
@ 2003-08-16  6:44 debian-gcc at lists dot debian dot org
  2003-08-16 13:10 ` [Bug libgcj/11941] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2003-08-16  6:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: gcj handles timezones wrongly
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org

[forwarded from http://bugs.debian.org/203212]

seen with current 3.3 CVS and HEAD.

The bug is: gij subtracts time from GMT time when it should add. Look at output
below:

##### TZ='Europe/Kaliningrad'; export TZ
##### gij Main
Mon Jul 28 13:19:15 GMT-02:00 2003
##### java Main
Mon Jul 28 18:19:22 EEST 2003
##### date
Mon Jul 28 18:19:24 EEST 2003
##### TZ='Europe/Moscow'; export TZ
##### gij Main
Mon Jul 28 12:19:33 GMT-03:00 2003
##### java Main
Mon Jul 28 19:19:37 MSD 2003
##### date
Mon Jul 28 19:19:39 MSD 2003

Moscow's timezone is GMT+3 at summer, not GMT-3.

java is Sun's Java.

##### cat Main.java
import java.util.*;
public class Main {
    public static void main(String[] args) {
        System.out.println(new Date());
    }
}
#####


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-01-30 13:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-16  6:44 [Bug libgcj/11941] New: gcj handles timezones wrongly debian-gcc at lists dot debian dot org
2003-08-16 13:10 ` [Bug libgcj/11941] " pinskia at gcc dot gnu dot org
2003-08-16 13:12 ` pinskia at gcc dot gnu dot org
2003-08-23  1:19 ` dhazeghi at yahoo dot com
2003-09-28  7:45 ` pinskia at gcc dot gnu dot org
2003-09-29  1:55 ` bryce at mckinlay dot net dot nz
2004-08-11 21:48 ` pinskia at gcc dot gnu dot org
2005-01-29  0:48 ` [Bug libgcj/11941] gcj handles timezones wrongly with new Date().toString() mckinlay at redhat dot com
2005-01-30  9:01 ` debian-gcc at lists dot debian dot org
2005-01-30 13:45 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).