Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4167800

On Japan NT, time zone always JST

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.1.8
    • 1.1.6, 1.1.7, 1.1.8
    • core-libs
    • 1.1.8
    • x86, sparc
    • solaris_2.6, windows_nt
    • Verified

      Name: mf23781 Date: 08/20/98

      *Symptoms:

      On a Windows NT 4.0 System that is running in Japanese, the Date.toString()
      function always returns a date with JST as the time zone.
      Since it thinks the time zone is JST, the date and time are
      different from the system date and time if the system time zone
      is not JST. (e.g. when the System time zone is
      set to EDT, the Date.toString() outputs a time that is 13 hours
      ahead of the system time because of the difference in time zones.)


      The following code demonstrates this bug if it is run on a Japanese NT 4.0
      System:


      import java.util.*;

      public class SystemTimeZoneTest {

          public static void main( String[] args ) {
              System.out.println( "The date for this system is " + (new
      Date()).toString() );

          }

      }


      *Behaviour differences:

      This bug does not show up in either Internet Explorer 4.01 or
      Netscape 4.06.


      ======================================================================

            aliusunw Alan Liu (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: