JDK-4067813 : Win32: "user.timezone" is "GMT" for Japan (must be "JST")
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.1.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86
  • Submitted: 1997-07-28
  • Updated: 1997-10-23
  • Resolved: 1997-10-23
Related Reports
Duplicate :  
Description
JDK 1.1.1, 1.1.3FCS and 1.1.4C. reports user.timezone is GMT in Japan.
Japanese timezone is JST not GMT.

test program:
public class TimeZoneApp
{
   public static void main(String[] args)
   {
     String tz = System.getProperty("user.timezone", "GMT");
     System.out.println("Time Zone is set to :" + tz);
   }
}
 

If change time zone via WinNT Date/Time Properties to US Central or Eastern time
zone, the correct time zone is reported by user.timezone. But if set to 
(GMT +9:00) Tokyo, Osaka, Sapporo, Seoul, Yakutsk, it will report timezone
to be "GMT".

Comments
WORK AROUND java -Duser.timezone="JST" DateTest will force timezone to be correct. But Oracle does not like this workaround, it isn't something that a typical user would do. They would just expect the time zone to be reported correctly.
11-06-2004