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 2011/04/13 17:47:05 UTC

[jira] [Issue Comment Edited] (NET-212) FTP short date parsing - how to handle future dates

    [ https://issues.apache.org/jira/browse/NET-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019392#comment-13019392 ] 

Sebb edited comment on NET-212 at 4/13/11 3:45 PM:
---------------------------------------------------

It is possible to configure lenient future date parsing:

{code}
FTPClient ftp = new FTPClient();
FTPClientConfig config = new FTPClientConfig();
config.setLenientFutureDates(true);
ftp.configure(config );
{code}

This allows for dates to be up to 1 day in the future, and works with auto-detection.

      was (Author: sebb@apache.org):
    It is possible to configure lenient future date parsing:

{code}
FTPClient ftp = new FTPClient();
FTPClientConfig config = new FTPClientConfig();
config.setLenientFutureDates(true);
ftp.configure(config );
{code}

This allows for dates to be up to 1 day in the future.
  
> FTP short date parsing - how to handle future dates
> ---------------------------------------------------
>
>                 Key: NET-212
>                 URL: https://issues.apache.org/jira/browse/NET-212
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 1.5, 2.0
>            Reporter: Sebb
>
> See NET-188 for history.
> Need to decide how to handle short dates (without years).
> Should this be:
> +/- 6 months?
> +1 day/-364 days?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira