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

Date.parse fails on IETF style dates with negative time-zone offset

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

      Date.parse fails on IETF style dates that have a negative timezone offset.
      Such dates are common in rfc822 mail messages, so this prevents us from using
      the Date class reliably ...

      Example:
      -------
      import java.util.*;
      public class x {
              public static void main(String argv[]) {
                      Date d = new Date("Thu, 5 Sep 1996 17:44:11 -0700");
                      System.out.println(d.toString());
              }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duke J. Duke (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: