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

Date.getDate() incorrect in Korean local

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.1.3
    • core-libs
    • None
    • sparc
    • solaris_2.5.1

    Description

      Today is 1997/07/07 in Korea,
      But Date.getDate() says today is "1997/07/06"
       
      Look at my shell capture.
      I use sun's Enterprize work station,
      My Os is sun solaris.
       
      [lion @ /user2/home/susie/IB-Server:8] cat TimeTest.java
      import java.util.*;
      public class TimeTest {
              public static void main(String args[]) {
                      Date date = new Date(System.currentTimeMillis());
                      System.out.println(date.getDate());
              }
      }
      [lion @ /user2/home/susie/IB-Server:9] javac TimeTest.java
      Note: TimeTest.java uses a deprecated API. Recompile with "-deprecation" for details.
      1 warning
      [lion @ /user2/home/susie/IB-Server:10] java TimeTest
      6
      [lion @ /user2/home/susie/IB-Server:11] date
      Mon Jul 7 11:50:29 KST 1997
       
       
      My email address is ###@###.###
      I tested JDK 1.1.1 and JDK 1.1.3
       
      but both two versions say today is "1997/07/06"

      Attachments

        Issue Links

          Activity

            People

              ssenthilsunw Shanmugam Senthil (Inactive)
              mchamnessunw Mark Chamness (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: