public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/3499: Calendar return GMT in non-GMT timezone, such as JST-9
@ 2001-07-01 15:45 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-07-01 15:45 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, nobody, tjkawa, tromey

Synopsis: Calendar return GMT in non-GMT timezone, such as JST-9

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Sun Jul  1 15:45:06 2001
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Sun Jul  1 15:45:06 2001
State-Changed-Why:
    On the gcc trunk we already have a new implementation
    of GregorianCalendar which does not use this code.
    The new implementation is much better.
    I'm closing this PR because I believe this problem is
    fixed with the new code (which, btw, came from Classpath).
    
    If you could try the new code that would be great.
    If not that's ok; you can try it when the trunk is released
    again.
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3499&database=gcc


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

* libgcj/3499: Calendar return GMT in non-GMT timezone, such as JST-9
@ 2001-06-30 14:06 tjkawa
  0 siblings, 0 replies; 2+ messages in thread
From: tjkawa @ 2001-06-30 14:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3499
>Category:       libgcj
>Synopsis:       Calendar return GMT in non-GMT timezone, such as JST-9
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 30 14:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tsujikawa Tohru
>Release:        gcc version 3.0
>Organization:
>Environment:
x86, Linux-2.4.5, glibc 2.2.3
>Description:
in libgcj/java/util/natGregorianCalendar.cc, computeFields():

> if (zone->getRawOffset() == 0 || ! zone->useDaylightTime())
>   {
> (suppressed)
>       tim = *(struct tm*) gmtime (&t);
> (suppressed)
>   }
> else
>   {
> (suppressed)
>       tim = *(struct tm*) localtime (&t);
> (suppressed)
> }


I think this should be:

> if (zone->getRawOffset() == 0 || zone->useDaylightTime())

In Japan, timezone is JST-9 and no daylight time.
So, this function returns GMT.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-07-01 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-01 15:45 libgcj/3499: Calendar return GMT in non-GMT timezone, such as JST-9 tromey
  -- strict thread matches above, loose matches on Subject: below --
2001-06-30 14:06 tjkawa

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