public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcj/11941] New: gcj handles timezones wrongly Date: Sat, 16 Aug 2003 06:44:00 -0000 [thread overview] Message-ID: <20030816064404.11941.debian-gcc@lists.debian.org> (raw) 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()); } } #####
next reply other threads:[~2003-08-16 6:44 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-08-16 6:44 debian-gcc at lists dot debian dot org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030816064404.11941.debian-gcc@lists.debian.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).