Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-211

setLenient() does not work across a year boundary

    XMLWordPrintableJSON

    Details

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

      Description

      Extracted from NET-188.

      If today's date is Dec 30 2007, then the short date "Dec 31" parses as Dec 31 2006 if lenientFutureDate is false, and Dec 31 2007 if lenient = true.

      However, if today's date is Dec 31 2007, then the short date "Jan 1" parses as Jan 1 2006 even if lenient = true.

      This is inconsistent.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sebb Sebb
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: