Happily. I'm in time zone CST, and I ran the following code:

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(106 + 1900, 6, 8);
//        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)));
    }

}

Which printed out:
ZONE_OFFSET: -6
DST_OFFSET: 1

** Changed in: sun-java5 (Ubuntu)
       Status: Unconfirmed => Needs Info

-- 
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