JDK-6471271 : (tz) New DST rules for North America not yet added to 1.3.1
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.3.1
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2006-09-15
  • Updated: 2011-02-16
  • Resolved: 2006-09-15
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.3.1_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_19-b03)
Java HotSpot(TM) Client VM (build 1.3.1_19-b03, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Solaris 10

A DESCRIPTION OF THE PROBLEM :
The new DST rules for North America starting next year still haven't been added to 1.3.1.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile and run the attached code.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Mon Mar 12 00:00:00 EDT 2007
ACTUAL -
Mon Mar 12 00:00:00 EST 2007

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.util.Date;
import java.text.SimpleDateFormat;

public class TestTime {
        public static void main(String[] args) throws Exception {
                System.out.println(new Date());
                SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
                Date settlementDate = format.parse("20070312");
                System.out.println(settlementDate);
        }
}
---------- END SOURCE ----------

Comments
EVALUATION The TimeZone support in 1.3.1 and earlier is not capable of supporting multiple GMT offsets and DST rules of a single time zone. Therefore, it's not possible to support future DST rule changes in 1.3.1. This problem was fixed in 1.4.0. Closing this bug report as a duplicate of 4257314. As for the 2007 U.S. DST rule change support, 1.3.1_18 and later have a workaround fix that the TimeZone methods will look up another time zone data table for the 2007 rules if JVM is running in 2007 or later, not based on the given time stamp to be processed. Please refer to 6391777 and 6425120.
15-09-2006