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 2010/09/22 15:08:35 UTC

[jira] Commented: (NET-339) Incorrect parsing of timestamp on windows

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

Sebb commented on NET-339:
--------------------------

Thanks for the patch. 
Unfortunately it does not work properly for older dates such as '05-22-97  12:08' - they are treated as being in the current year (2010).

I think this is because the format is being used as the recentDateFormat, rather than an alternative full date format.

> Incorrect parsing of timestamp on windows
> -----------------------------------------
>
>                 Key: NET-339
>                 URL: https://issues.apache.org/jira/browse/NET-339
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 2.0
>         Environment: Windows
>            Reporter: Bram
>            Priority: Minor
>         Attachments: NET-339.patch
>
>
> Somewhere in the past the timestamp format returned by windows/the windows ftp server changed.
> In the past the timestamp had a format like: '09-21-10 06:00PM'.
> The 'current' format however is: '09-21-10 18:00'.
> In version 1.4 this resulted in no files being displayed because parsing the timestamp fails;
> In version 2 this results in the files being displayed but without the timestamp.
> (This is the result of change 645299)
> The attached patch updates the code so that it detects both the old and the new format of the timestamp.
> A bug that also mentions this, or at least the comments, https://issues.apache.org/jira/browse/NET-50

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