commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (NET-212) FTP short date parsing - how to handle future dates
Date Wed, 13 Apr 2011 15:47:05 GMT

    [ 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

Mime
View raw message