[jira] [Commented] (NET-635) Problems with German summertime
[ https://issues.apache.org/jira/browse/NET-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15943774#comment-15943774 ] Peter Naber commented on NET-635: - I think you are right with your arguments. If the ftp Server works with GMT timezone, the time 26 March 2:29 is OK, for the client with CET it's an invalid time. So it is absolute necessary to use the setServerTimeZoneId function if you will not have invalid times by the switch summer/winter Time. > Problems with German summertime > --- > > Key: NET-635 > URL: https://issues.apache.org/jira/browse/NET-635 > Project: Commons Net > Issue Type: Bug > Components: FTP >Affects Versions: 3.6 > Environment: linux >Reporter: Peter Naber >Priority: Minor > > There is a problem at the funktion > org.apache.commons.net.ftp.parser.FTPTimestampParserImpl.parseTimestamp > At the ftp Server exists a file with the timestamp "Mar 26 02:29" > In Germany, the clock will be switched at 2:00 from wintertime to summertime > Mar 26 2:00 -> Mar 26 3:00. > So the time "Mar 26 02:29" is invalid if the commons-net function will run on > a german server. > The workaround is, to set the servertimezone to GMT -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (NET-635) Problems with German summertime
[ https://issues.apache.org/jira/browse/NET-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15943514#comment-15943514 ] Sebb commented on NET-635: -- I'm not sure what the issue is here. What does NET do? What should it do instead? Looks to me more like a problem with the FTP server which has allowed a file to be created with an invalid timestamp. Remember it is the server that generates the listing; if it generates an invalid timestamp that is not an error in NET. Also if you are concerned about timestamps, it would be better to use FTPClient.mlistFile() or mdtmFile(). However not all servers support MLIST and MDTM. > Problems with German summertime > --- > > Key: NET-635 > URL: https://issues.apache.org/jira/browse/NET-635 > Project: Commons Net > Issue Type: Bug > Components: FTP >Affects Versions: 3.6 > Environment: linux >Reporter: Peter Naber >Priority: Minor > > There is a problem at the funktion > org.apache.commons.net.ftp.parser.FTPTimestampParserImpl.parseTimestamp > At the ftp Server exists a file with the timestamp "Mar 26 02:29" > In Germany, the clock will be switched at 2:00 from wintertime to summertime > Mar 26 2:00 -> Mar 26 3:00. > So the time "Mar 26 02:29" is invalid if the commons-net function will run on > a german server. > The workaround is, to set the servertimezone to GMT -- This message was sent by Atlassian JIRA (v6.3.15#6346)