JDK-4296930 : RFE: Win32: Incorrect time when "Automatically adjust for DST" deselected
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.3.0,1.3.1_11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 1999-12-04
  • Updated: 2001-06-19
  • Resolved: 2001-06-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 beta2Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description

Name: rlT66838			Date: 12/04/99


Times seem to be off by an hour on machines which have turned off the "Automatically adjust clock for daylight savings changes" option from the Windows control panel's Date/Time tab.

Sample Code
-----------
public class dst
{
	public static void main(String[] args)
	{
		System.out.println(new java.util.Date());
	}
}

Results
-------
Run this class with the "Automatically adjust..." flag turned on, and the resulting time matches the windows system clock. Then turn off the flag and try again. This time, the resulting time will be off from the Windows System time by 1 hour.


(Review ID: 94196) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: merlin-beta2 INTEGRATED IN: merlin-beta2
20-08-2004

EVALUATION This Win32 dependent feature is not supported yet. masayoshi.okutsu@Eng 1999-12-07 Time zone detection code could check the setting and give the value back to the java code and add a package private method in a TimeZone implementation subclass to disable DST of a TimeZone object. masayoshi.okutsu@Eng 2000-11-07 The approach above hasn't been taken due to some API level issues. When the auto-adjustment is turned off, the platform time zone detection code will create a time zone ID in the "GMT{+|-}hh:mm" form with which a custom TimeZone object is created. This is because some Windows users turn it off due to incorrect Win32 time zones and choose one based on just the GMT offset. A restriction is that display names are not supported even it just means to use standard time of a correct time zone selection for some other purposes. For example, if "(GMT-08:00) Pacific Time (US & Canada); Tijuana" is selected with "Automatically adjust clock for daylight saving changes" turned off, its Java time zone ID will be "GMT-08:00" and its display names are always "GMT-08:00", not "Pacific Standard Time" or "PST" as an abbreviation. masayoshi.okutsu@Eng 2001-06-07
07-06-2001