FIX: DateFormat Class Does Not Default to the System Time Zone (233271)
The information in this article applies to:
- Microsoft virtual machine
This article was previously published under Q233271 SYMPTOMS
When using the java.text.DateFormat class, you will observe that it properly sets the time/date. However it does not display the time corresponding to the default system time zone set on your computer. Instead, it defaults to the first time zone of the system's locale. (For US English, the default would always be PST/PDT.)
CAUSE
The problem is that the time zone is not set by default in the versions of the Microsoft virtual machine (Microsoft VM) prior to build 3181.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem has been fixed in Microsoft VM builds 3181 or later. The latest build is available at:
If you are using a Microsoft VM build prior to this version, then the workaround is to call setTimeZone on the DateFormat object.
REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbbug kbfix KB233271 |
---|
|