Differences

This shows you the differences between the selected revisions of the page.

2012-09-15 2013-04-24
Restored revision 1334552490. Undoing revision 1347641250. (Petr) (hidden) Troubleshooting Timestamp Issues (martin)
Line 27: Line 27:
  * If you are getting an error message, check list of [[messages|common error messages]].   * If you are getting an error message, check list of [[messages|common error messages]].
  * Turn on [[logging|session logging]] and check the generated log file to see if WinSCP actually does what you want it to do.   * Turn on [[logging|session logging]] and check the generated log file to see if WinSCP actually does what you want it to do.
 +
 +===== [[timestamps]] Troubleshooting Timestamp Issues =====
 +When the file timestamps you see in [[ui_file_panel|file panels]] are not what you expect them to be; or [[task_synchronize|synchronization]] does not work:
 +  * Read documentation on [[timestamps]].
 +  * Read about [[faq_synchronize|common problems causing synchronization not to work]].
 +  * With [[sftp|SFTP]] and [[ftp|FTP]]((For FTP this is specifically mandated for ''[[ui_login_ftp|MLSD]]'' command. With obsoleted ''LIST'' command, behaviour is undefined.)) protocols, both client and server need to use UTC timestamps.
 +    * Common problem is that the server misinterprets the UTC timestamps.
 +    * To see how WinSCP and the server communicate the timestamps, turn on [[logging|session logging]] (on level //Debug 1//) &beta and check the generated log file.
 +
 +When inspecting the session log, look for following entries:
 +
 +  * Directory listing, including UTC file modification timestamps:
 +
 +<code>
 +..;D;0;2013-04-24T08:43:23.000Z;"" [0];"" [0];rw-rw-rw-;1                               
 +.htaccess;-;33;2004-11-10T20:46:46.000Z;"" [0];"" [0];rw-rw-rw-;3                       
 +commandline.txt;-;9390;2013-04-15T09:01:52.000Z;"" [0];"" [0];rw-rw-rw-;1               
 +config.txt;-;4490;2013-04-17T06:31:36.000Z;"" [0];"" [0];rw-rw-rw-;1                   
 +contributions.txt;-;1865;2012-08-24T07:08:58.000Z;"" [0];"" [0];rw-rw-rw-;1             
 +directory_cache.txt;-;1892;2011-07-30T18:24:52.000Z;"" [0];"" [0];rw-rw-rw-;1           
 +dragext.txt;-;4329;2013-04-09T11:50:48.000Z;"" [0];"" [0];rw-rw-rw-;1                   
 +</code>
 +
 +  * Modification timestamp being set on target files after file transfer (SFTP):
 +
 +<code>
 +Preserving timestamp [2009-02-26T21:15:50.000Z]
 +</code>
 +
 +  * Timestamp comparing during synchronization:
 +
 +<code>
 +Local file 'D:\Documents\wiki\config.txt' [2013-04-24T09:41:04.922Z] [4546] is modified
 +comparing to remote file '/home/martinp/httpdocs/wiki/config.txt' [2013-04-17T06:31:36.000Z] [4490]
 +</code>
 +
 +If this does not help you, and you decide to seek [[support]], make sure you include complete session log in your report, showing above entries.
===== When You Are Not Able to Help Yourself ===== ===== When You Are Not Able to Help Yourself =====
Learn what [[support|support]] you may get to WinSCP. Learn what [[support|support]] you may get to WinSCP.

Last modified: by martin