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.

[EMAIL PROTECTED]:~/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)

[EMAIL PROTECTED]:~/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)));
                                                                            }

}

[EMAIL PROTECTED]:~/cvs/java-test$ javac TimeTester.java
[EMAIL PROTECTED]:~/cvs/java-test$ date
Wed Mar  7 10:33:36 GMT 2007
[EMAIL PROTECTED]:~/cvs/java-test$ java TimeTester
ZONE_OFFSET: 0
DST_OFFSET: 0
[EMAIL PROTECTED]:~/cvs/java-test$ sudo date 060110331997
Password:
Sun Jun  1 10:33:00 BST 1997
[EMAIL PROTECTED]:~/cvs/java-test$ date
Sun Jun  1 10:33:02 BST 1997
[EMAIL PROTECTED]:~/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

-- 
Java reports time zone incorrectly during CDT (US Daylight saving time)
https://launchpad.net/bugs/49068

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to