JDK-4813722 : (tz) Windows XP GMT-12 time zone should be supported
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.4.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-02-05
  • Updated: 2006-12-25
  • Resolved: 2006-12-25
Related Reports
Duplicate :  
Description
Name: jl125535			Date: 02/05/2003


FULL PRODUCT VERSION :
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

Also reproduced with 1.4.1 and 1.4.2.

FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]

A DESCRIPTION OF THE PROBLEM :
When time zone is set to GMT-12, java.util.Date() returns a
date greater by one day then the system date

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Set the time zone to GMT-12 (Eniwetok, Kwajelein)
2. Set the date to Oct-4 2002
3. Set the time to 7:40am
4. Start Command Prompt
5. Check the system date: type "date"
6. Compile and run the test Java code (below)
7. The output produced by the Java code is incorrect: while
the OS reports Oct-4, Java reports Oct-5

EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected a date equal to OS date;
Got a date off by 1 day

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        Date d = new Date();
        System.out.println(d);
    }
}

---------- END SOURCE ----------

CUSTOMER WORKAROUND :
With time zone set to GMT-5 (Easter time (US & Canada)) the
date reported by java.util.Date() matches the OS date
(Review ID: 165521) 
======================================================================

Comments
EVALUATION It was fixed in 6390869.
25-12-2006

WORK AROUND Use
17-09-2004

EVALUATION Currently, Marshall Is seems to use GMT+12:00. The Olson time zone data is as follows. # Marshall Is # Zone NAME GMTOFF RULES FORMAT [UNTIL] Zone Pacific/Majuro 11:24:48 - LMT 1901 11:00 - MHT 1969 Oct # Marshall Islands Time 12:00 - MHT Zone Pacific/Kwajalein 11:09:20 - LMT 1901 11:00 - MHT 1969 Oct -12:00 - KWAT 1993 Aug 20 # Kwajalein Time 12:00 - MHT The Windows 2000 time zone is incorrect for Kwajalein. But Windows XP changed the display name to "International Date Line West" for the same time zone, which might require some changes in the platform time zone detection code in Java. According to the latest Olson time zone data, there's no real time zone where GMT-12:00 is used. Use GMT+12:00 Marshall Is for Kwajalein. ###@###.### 2003-02-06
06-02-2003