JDK-6362722 : (tz) Australia is extending Daylight Saving Time for one week in 2006 only.
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-12-13
  • Updated: 2011-02-16
  • Resolved: 2005-12-14
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
Normally, Australian time zones that use Daylight Saving Time (DST) finish DST on the last Sunday of March.
Because of a special Event (Commonwealth Games), this has been extended by one week in 2006 to 2nd April 2006.
Following years will revert to the normal rule.
Currently J2SE 1.4.2 is not aware of this exception.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
TimeZone timeZone = TimeZone.getTimeZone("Australia/NSW");
// Create a DateFormat for the given TimeZone
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
dateFormat.setTimeZone(timeZone);
try {
	System.out.println(timeZone.inDaylightTime(dateFormat.parse("1/4/2006")));
} catch (ParseException e) {
	// unexpected
	e.printStackTrace();
}



REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
TimeZone timeZone = TimeZone.getTimeZone("Australia/NSW");
// Create a DateFormat for the given TimeZone
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
dateFormat.setTimeZone(timeZone);
try {
	System.out.println(timeZone.inDaylightTime(dateFormat.parse("1/4/2006")));
} catch (ParseException e) {
	// unexpected
	e.printStackTrace();
}

---------- END SOURCE ----------

Comments
EVALUATION The 2006-only DST rule in Australia was addressed in tzdata2005m. It should be fixed under 6332148 (tzdata2005n).
14-12-2005