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

* [Bug libgcj/11941] gcj handles timezones wrongly
  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 ` pinskia at gcc dot gnu dot org
  2003-08-16 13:12 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-16 13:10 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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hamano at hyper dot linc dot
                   |                            |or dot jp


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-16 13:10 -------
*** Bug 11248 has been marked as a duplicate of this bug. ***


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

* [Bug libgcj/11941] gcj handles timezones wrongly
  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
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-16 13:12 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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-16 13:12:23
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-16 13:12 -------
I can confirm this on the mainline (20030814).


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

* [Bug libgcj/11941] gcj handles timezones wrongly
  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
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  1:19 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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


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

* [Bug libgcj/11941] gcj handles timezones wrongly
  2003-08-16  6:44 [Bug libgcj/11941] New: gcj handles timezones wrongly debian-gcc at lists dot debian dot org
                   ` (2 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-28  7:45 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



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-28 04:04 -------
Most likely fixed by <http://gcc.gnu.org/ml/java-patches/2003-q3/msg00882.html>.


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

* [Bug libgcj/11941] gcj handles timezones wrongly
  2003-08-16  6:44 [Bug libgcj/11941] New: gcj handles timezones wrongly debian-gcc at lists dot debian dot org
                   ` (3 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-09-29  1:55 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


bryce at mckinlay dot net dot nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-08-16 13:12:23         |2003-09-29 00:29:30
               date|                            |


------- Additional Comments From bryce at mckinlay dot net dot nz  2003-09-29 00:29 -------
Nope, my SimpleDateFormat patch doesn't fix this - its a different problem.


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

* [Bug libgcj/11941] gcj handles timezones wrongly
  2003-08-16  6:44 [Bug libgcj/11941] New: gcj handles timezones wrongly debian-gcc at lists dot debian dot org
                   ` (4 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-11 21:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |16990
              nThis|                            |


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


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

* [Bug libgcj/11941] gcj handles timezones wrongly with new Date().toString()
  2003-08-16  6:44 [Bug libgcj/11941] New: gcj handles timezones wrongly debian-gcc at lists dot debian dot org
                   ` (5 preceding siblings ...)
  2004-08-11 21:48 ` pinskia at gcc dot gnu dot org
@ 2005-01-29  0:48 ` 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
  8 siblings, 0 replies; 10+ messages in thread
From: mckinlay at redhat dot com @ 2005-01-29  0:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mckinlay at redhat dot com  2005-01-29 00:48 -------
This appears to be fixed:

$ TZ='Europe/Moscow' gij TZMain
Sat Jan 29 03:46:38 GMT+03:00 2005

$ TZ='Europe/Kaliningrad' gij TZMain
Sat Jan 29 02:47:07 GMT+02:00 2005


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug libgcj/11941] gcj handles timezones wrongly with new Date().toString()
  2003-08-16  6:44 [Bug libgcj/11941] New: gcj handles timezones wrongly debian-gcc at lists dot debian dot org
                   ` (6 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2005-01-30  9:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From debian-gcc at lists dot debian dot org  2005-01-30 09:01 -------
BTS masters, please set the target milestone to 4.0

Thanks, Matthias


-- 


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


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

* [Bug libgcj/11941] gcj handles timezones wrongly with new Date().toString()
  2003-08-16  6:44 [Bug libgcj/11941] New: gcj handles timezones wrongly debian-gcc at lists dot debian dot org
                   ` (7 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-30 13:45 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


^ 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).