JDK-6530295 : (tz) Change in output with Auto DST On/Off with Windows XP and Windows 2000
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 5.0u10
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-03-02
  • Updated: 2017-02-08
  • Resolved: 2017-02-08
Related Reports
Relates :  
Description
Synopsis : Change in output with Auto DST On/Off with Windows XP and Windows 2000.

Description :

We have a query from customer with Auto DST turned On/Off on Windows XP as well as on Windows 2000.
There will a behaviour change in the Date().toString() when the 
'automatically adjust clock for daylight saving changes' checkbox is 
unchecked on Microsoft Windows. Here is a simple test to show this 
behaviour. Compiling this class and running it on Windows with and 
without the 'automatically adjust clock for daylight saving changes' 
checkbox found under 'Timezone' tab in the 'Date and Time properties 
dialog (double click on the clock display in the system panel on the 
desktop).

This issue can be seen with JDK 1.5.0_10 and 1.5.0_09.


Test Code :
------------

public class test {
  public static void main(String[] args) {
              System.err.println(new java.util.Date().toString());
  }
}


Output :
---------

With 'Automatically adjust clock for daylight saving changes' checked
C:\>java test
Tue Feb 27 10:37:22 PST 2007

With 'Automatically adjust clock for daylight saving changes' unchecked
C:\java test
Tue Feb 27 10:37:32 GMT-08:00 2007

What customers would like to see is 'PST 2007' instead of 'GMT-08:00' 
even if the 'automatically adjust clock for daylight saving changes' is 
unchecked. Reason being, the TZ Geo is not changed but only the Auto DST 
setting is turned off.

It would be helpful to inform any workaround/suggestion on this.

Comments
Closing as no feedback has bee received.
08-02-2017

EVALUATION The reason of the current behavior is described in 4296930. I'd like get feedback from more customers on this issue. Some other customers won't be happy if we change the current behavior.
02-03-2007