JDK-4303819 : TimeZone class thinks Queensland, Australia uses daylight savings.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2000-01-11
  • Updated: 2000-01-17
  • Resolved: 2000-01-17
Related Reports
Duplicate :  
Description
The Sun Management Center console uses JDK extensively.  When used in the Queensland, Australia time zone, the time values are displayed incorrectly.  Apparently the TimeZone class is not aware that this time zone does not use daylight savings (even though every other Australian time zone does).  Simple test case below can be used to duplicate the problem (correct time for Queensland should be PST + 18):                                                                                                                             import java.text.*;
import java.util.*;
import java.io.*;

public class SimpleDateFormatTest {

    public SimpleDateFormatTest() {
    }

    public static void main( String args[]) {
        SimpleDateFormat fm = new SimpleDateFormat("MMM d  HH:mm:ss");
        System.out.println(fm.format(new Date()));
    }
}

Comments
EVALUATION This bug was fixed as 4256581 for Kestrel. masayoshi.okutsu@Eng 2000-01-17
17-01-2000