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)
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 GregorianCalend ar;
import java.util.Calendar;
import java.util.Date;
import java.util.
public class TimeTester
{
public static void main( String[] args )
{
Calendar calendar = new GregorianCalend ar();
Date trialTime = new Date();
calendar. setTime( trialTime) ;
}
balaaman@ pingu:~ /cvs/java- test$ javac TimeTester.java pingu:~ /cvs/java- test$ date pingu:~ /cvs/java- test$ java TimeTester pingu:~ /cvs/java- test$ sudo date 060110331997 pingu:~ /cvs/java- test$ date pingu:~ /cvs/java- test$ java TimeTester
balaaman@
Wed Mar 7 10:33:36 GMT 2007
balaaman@
ZONE_OFFSET: 0
DST_OFFSET: 0
balaaman@
Password:
Sun Jun 1 10:33:00 BST 1997
balaaman@
Sun Jun 1 10:33:02 BST 1997
balaaman@
ZONE_OFFSET: 0
DST_OFFSET: 0
I would expect the final line above to read: DST_OFFSET: 1
Right?
Thanks, Andy