title: How to set time for a timestamp in FTPClient
body: <p>I have a file on a server and I want to modify its timestamp.</p>
  
  <p>It seems the following line is for this purpose:</p>
  
  <p><code>ftpClient.mlistFile("file path").getTimestamp().setTime(date);</code></p>
  
  <p>But it does not change the date at all.</p>
  
  <p>Here is the full code:</p>
  
  <pre><code>String remotePath = "/public_html/AX/dan.css";
  Calendar ftpFile = ftpClient.mlistFile(remotePath).getTimestamp();
  Date date = ftpFile.getTime();
  System.out.ptintln(date);
  
  Calendar cal = Calendar.getInstance();
  ftpClient.mlistFile(remotePath).getTimestamp().setTime(cal.getTime());
  System.out.ptintln(ftpClient.mlistFile(remotePath).getTimestamp().getTime());
  </code></pre>
  
  <p>So the above code first print the old timestamp of the remote file, the modifies it to the current time and print it again. But if you run it you'll see that the second print is still the same as the old one. So action modification did not work.</p>
  
  <p>Why is that? Any idea?</p>