Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None

      Description

      The following test code gives different results on Harmony than on RI. Harmony outputs:

      d = 1143334200000

      and RI outputs:

      d = 1143337800000

      import java.text.DateFormat;
      import java.text.SimpleDateFormat;
      import java.util.TimeZone;
      import java.util.Date;
      import java.util.Locale;

      public class Test {

      public static void main(String[] args) {
      DateFormat df = new SimpleDateFormat("MMM dd, yyyy H:mm:ss.SSS",
      Locale.ENGLISH);
      TimeZone zone = TimeZone.getTimeZone("Europe/London");
      df.setTimeZone(zone);
      Date d = null;
      try

      { d = df.parse("March 26, 2006 01:50:00.000"); }

      catch (Exception e)

      { e.printStackTrace(); }

      System.err.println("d = " + d.getTime());
      }
      }

      1. harmony-493-test.patch
        2 kB
        Oleg Khaschansky
      2. harmony-493.patch
        1 kB
        Oleg Khaschansky

        Activity

          People

          • Assignee:
            Mark Hindess
            Reporter:
            Mark Hindess
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development