You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Junsheng Chen (JIRA)" <ji...@apache.org> on 2012/04/24 09:35:39 UTC
[jira] [Created] (NET-461) getTimestamp() return is different by
same file in windows and linux
Junsheng Chen created NET-461:
---------------------------------
Summary: getTimestamp() return is different by same file in windows and linux
Key: NET-461
URL: https://issues.apache.org/jira/browse/NET-461
Project: Commons Net
Issue Type: Bug
Components: FTP
Affects Versions: 3.1
Environment: Linux and Windows
Reporter: Junsheng Chen
Priority: Minor
Fix For: 3.2
When using "listFiles" in FTPClient, I have found getTimestamp() return is different in windows and linux.
For example,The file last modified time is 2012-04-24 15:10:40 (GMT +8:00) both in linux and windows, getTimestamp return is "Tue Apr 24 15:10:00 CST 2012" in windows, but return "Tue Apr 24 07:10:00 CST 2012" in linux。
Detail:
My Code is:
FTPClient client = new FTPClient();
client.connect("*.*.*.*", 21);
client.login("*******", "*********");
FTPFile[] files = client.listFiles();
for (int i = 0; i < files.length; i++)
{
FTPFile ftpFile = files[i];
System.out.println(ftpFile.getTimestamp().getTime());
}
Code print:
Windows:
Tue Apr 24 15:10:00 CST 2012
Linux:
Tue Apr 24 07:10:00 CST 2012
getTimestamp() return all is same but hour information is different。
Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (NET-461) getTimestamp() return is different by
same file in windows and linux
Posted by "Junsheng Chen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NET-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Junsheng Chen closed NET-461.
-----------------------------
Resolution: Not A Problem
Fix Version/s: (was: 3.2)
3.1
vsftpd can set use_localtime=YES (NO) to fix
> getTimestamp() return is different by same file in windows and linux
> --------------------------------------------------------------------
>
> Key: NET-461
> URL: https://issues.apache.org/jira/browse/NET-461
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.1
> Environment: Linux and Windows
> Reporter: Junsheng Chen
> Priority: Minor
> Labels: FTPClient, getTimestamp, listFiles
> Fix For: 3.1
>
> Original Estimate: 672h
> Remaining Estimate: 672h
>
> When using "listFiles" in FTPClient, I have found getTimestamp() return is different in windows and linux.
> For example,The file last modified time is 2012-04-24 15:10:40 (GMT +8:00) both in linux and windows, getTimestamp return is "Tue Apr 24 15:10:00 CST 2012" in windows, but return "Tue Apr 24 07:10:00 CST 2012" in linux。
> Detail:
> My Code is:
> FTPClient client = new FTPClient();
> client.connect("*.*.*.*", 21);
> client.login("*******", "*********");
> FTPFile[] files = client.listFiles();
>
> for (int i = 0; i < files.length; i++)
> {
> FTPFile ftpFile = files[i];
> System.out.println(ftpFile.getTimestamp().getTime());
> }
> Code print:
> Windows:
> Tue Apr 24 15:10:00 CST 2012
> Linux:
> Tue Apr 24 07:10:00 CST 2012
> getTimestamp() return all is same but hour information is different。
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (NET-461) getTimestamp() return is different by
same file in windows and linux
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NET-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved NET-461.
----------------------
Resolution: Not A Problem
> getTimestamp() return is different by same file in windows and linux
> --------------------------------------------------------------------
>
> Key: NET-461
> URL: https://issues.apache.org/jira/browse/NET-461
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.1
> Environment: Linux and Windows
> Reporter: Junsheng Chen
> Priority: Minor
> Labels: FTPClient, getTimestamp, listFiles
> Original Estimate: 672h
> Remaining Estimate: 672h
>
> When using "listFiles" in FTPClient, I have found getTimestamp() return is different in windows and linux.
> For example,The file last modified time is 2012-04-24 15:10:40 (GMT +8:00) both in linux and windows, getTimestamp return is "Tue Apr 24 15:10:00 CST 2012" in windows, but return "Tue Apr 24 07:10:00 CST 2012" in linux。
> Detail:
> My Code is:
> FTPClient client = new FTPClient();
> client.connect("*.*.*.*", 21);
> client.login("*******", "*********");
> FTPFile[] files = client.listFiles();
>
> for (int i = 0; i < files.length; i++)
> {
> FTPFile ftpFile = files[i];
> System.out.println(ftpFile.getTimestamp().getTime());
> }
> Code print:
> Windows:
> Tue Apr 24 15:10:00 CST 2012
> Linux:
> Tue Apr 24 07:10:00 CST 2012
> getTimestamp() return all is same but hour information is different。
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (NET-461) getTimestamp() return is different by
same file in windows and linux
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NET-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated NET-461:
---------------------
Fix Version/s: (was: 3.1)
> getTimestamp() return is different by same file in windows and linux
> --------------------------------------------------------------------
>
> Key: NET-461
> URL: https://issues.apache.org/jira/browse/NET-461
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.1
> Environment: Linux and Windows
> Reporter: Junsheng Chen
> Priority: Minor
> Labels: FTPClient, getTimestamp, listFiles
> Original Estimate: 672h
> Remaining Estimate: 672h
>
> When using "listFiles" in FTPClient, I have found getTimestamp() return is different in windows and linux.
> For example,The file last modified time is 2012-04-24 15:10:40 (GMT +8:00) both in linux and windows, getTimestamp return is "Tue Apr 24 15:10:00 CST 2012" in windows, but return "Tue Apr 24 07:10:00 CST 2012" in linux。
> Detail:
> My Code is:
> FTPClient client = new FTPClient();
> client.connect("*.*.*.*", 21);
> client.login("*******", "*********");
> FTPFile[] files = client.listFiles();
>
> for (int i = 0; i < files.length; i++)
> {
> FTPFile ftpFile = files[i];
> System.out.println(ftpFile.getTimestamp().getTime());
> }
> Code print:
> Windows:
> Tue Apr 24 15:10:00 CST 2012
> Linux:
> Tue Apr 24 07:10:00 CST 2012
> getTimestamp() return all is same but hour information is different。
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (NET-461) getTimestamp() return is different by
same file in windows and linux
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NET-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb reopened NET-461:
----------------------
> getTimestamp() return is different by same file in windows and linux
> --------------------------------------------------------------------
>
> Key: NET-461
> URL: https://issues.apache.org/jira/browse/NET-461
> Project: Commons Net
> Issue Type: Bug
> Components: FTP
> Affects Versions: 3.1
> Environment: Linux and Windows
> Reporter: Junsheng Chen
> Priority: Minor
> Labels: FTPClient, getTimestamp, listFiles
> Original Estimate: 672h
> Remaining Estimate: 672h
>
> When using "listFiles" in FTPClient, I have found getTimestamp() return is different in windows and linux.
> For example,The file last modified time is 2012-04-24 15:10:40 (GMT +8:00) both in linux and windows, getTimestamp return is "Tue Apr 24 15:10:00 CST 2012" in windows, but return "Tue Apr 24 07:10:00 CST 2012" in linux。
> Detail:
> My Code is:
> FTPClient client = new FTPClient();
> client.connect("*.*.*.*", 21);
> client.login("*******", "*********");
> FTPFile[] files = client.listFiles();
>
> for (int i = 0; i < files.length; i++)
> {
> FTPFile ftpFile = files[i];
> System.out.println(ftpFile.getTimestamp().getTime());
> }
> Code print:
> Windows:
> Tue Apr 24 15:10:00 CST 2012
> Linux:
> Tue Apr 24 07:10:00 CST 2012
> getTimestamp() return all is same but hour information is different。
> Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira