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

setLenient() does not work across a year boundary

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment