Comment 3 for bug 49068

I can still reproduce this. I'm really sorry, but I've done it on an Edgy system, just to be difficult. I'd be really surprised if it's not the same on both Dapper and Feisty.

balaaman@pingu:~/cvs/java-test$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

balaaman@pingu:~/cvs/java-test$ cat TimeTester.java
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class TimeTester
{

            public static void main( String[] args )
                        {
                                        Calendar calendar = new GregorianCalendar();
                                                Date trialTime = new Date();
                                                        calendar.setTime(trialTime);

                                                                System.out.println("ZONE_OFFSET: " + (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000)));

                                                                        System.out.println("DST_OFFSET: " + (calendar.get(Calendar.DST_OFFSET)/(60*60*1000)));
                                                                            }

}

balaaman@pingu:~/cvs/java-test$ javac TimeTester.java
balaaman@pingu:~/cvs/java-test$ date
Wed Mar 7 10:33:36 GMT 2007
balaaman@pingu:~/cvs/java-test$ java TimeTester
ZONE_OFFSET: 0
DST_OFFSET: 0
balaaman@pingu:~/cvs/java-test$ sudo date 060110331997
Password:
Sun Jun 1 10:33:00 BST 1997
balaaman@pingu:~/cvs/java-test$ date
Sun Jun 1 10:33:02 BST 1997
balaaman@pingu:~/cvs/java-test$ java TimeTester
ZONE_OFFSET: 0
DST_OFFSET: 0

I would expect the final line above to read: DST_OFFSET: 1

Right?

Thanks, Andy