You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2008/04/07 03:36:24 UTC

[jira] Created: (NET-211) setLenient() does not work across a year boundary

setLenient() does not work across a year boundary
-------------------------------------------------

                 Key: NET-211
                 URL: https://issues.apache.org/jira/browse/NET-211
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 1.5, 2.0
            Reporter: Sebb


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NET-211) setLenient() does not work across a year boundary

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586310#action_12586310 ] 

Sebb commented on NET-211:
--------------------------

Applied fixes to trunk:

http://svn.apache.org/viewvc?rev=645433&view=rev (code)
http://svn.apache.org/viewvc?rev=645435&view=rev (tests)

Applied fixes to NET_2_0 branch:

http://svn.apache.org/viewvc?rev=645441&view=rev (code)
http://svn.apache.org/viewvc?rev=645439&view=rev (tests)

> setLenient() does not work across a year boundary
> -------------------------------------------------
>
>                 Key: NET-211
>                 URL: https://issues.apache.org/jira/browse/NET-211
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.5, 2.0
>            Reporter: Sebb
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NET-211) setLenient() does not work across a year boundary

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586220#action_12586220 ] 

Sebb commented on NET-211:
--------------------------

Test cases added.

Trunk:
     http://svn.apache.org/viewvc?rev=645341&view=rev

NET_2_0:
    http://svn.apache.org/viewvc?rev=645342&view=rev

> setLenient() does not work across a year boundary
> -------------------------------------------------
>
>                 Key: NET-211
>                 URL: https://issues.apache.org/jira/browse/NET-211
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.5, 2.0
>            Reporter: Sebb
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (NET-211) setLenient() does not work across a year boundary

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-211.
----------------------

       Resolution: Fixed
    Fix Version/s: 2.0
                   1.5

Fixes have been applied to trunk and NET_2_0 branches

> setLenient() does not work across a year boundary
> -------------------------------------------------
>
>                 Key: NET-211
>                 URL: https://issues.apache.org/jira/browse/NET-211
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.5, 2.0
>            Reporter: Sebb
>             Fix For: 1.5, 2.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.