[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()); } } #####
*** Bug 11248 has been marked as a duplicate of this bug. ***
I can confirm this on the mainline (20030814).
Most likely fixed by <http://gcc.gnu.org/ml/java-patches/2003-q3/msg00882.html>.
Nope, my SimpleDateFormat patch doesn't fix this - its a different problem.
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
BTS masters, please set the target milestone to 4.0 Thanks, Matthias