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

JAVA.TEXT.DATEFORMAT.SIMPLEDATEFORMAT.FORMAT

    XMLWordPrintable

Details

    Description



      Name: pa48320 Date: 04/07/2003

      The problem occurs only on international jre with the locale set to JAPAN with a Japanese Operating System.

      ********************** Code ********************************
      import java.text.*;
      import java.util.*;
      import java.util.Date;

      class japan
      {
        public static void main(String[] args)
        {
          Format formatter;
          Locale locale = Locale.JAPAN;
          TimeZone tz = TimeZone.getTimeZone ("GMT");

          formatter = new SimpleDateFormat ("EEE, d MMM yyyy HH:mm:ss zzz");
          Date epoch = new Date (0);
          String japanOut = formatter.format(epoch);
          DateFormat cdf = new SimpleDateFormat ("EEE, d MMM yyyy HH:mm:ss zzz");

          // Just double-check to make sure the tests themselves are ok.
          System.out.print(japanOut);
          System.out.print(" ");
          System.out.println(" ");
          System.out.print(locale);
          System.out.println(" ");
        }
      }

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

      Attachments

        Activity

          People

            kurosaki Kenichi Kurosaki (Inactive)
            pallenba Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: