unix to windows timestamp
trying to synchronize local windows (8) with remote unix by script.
command line:
script:
and every run winscp download entire content.
extract from log for one file:
and then
local timezone +3, DTS is permanent.
command line:
WinSCP.exe /console /script=test.txt /log=test.log
script:
open sftp://<user>:<pass>@<url> -rawsettings ConsiderDST=2 synchronize local Z:\home\site\www\forum\gallery\mcp /home/site/www/forum/gallery/mcp close bye
and every run winscp download entire content.
extract from log for one file:
. 2014-01-24 18:12:44.652 Local file 'Z:\home\site\www\forum\gallery\mcp\index.htm' [2011-03-27T20:32:01.000Z] [0] included to synchronization . 2014-01-24 18:12:44.819 index.htm;-;0;2011-03-27T21:32:01.000Z;"site" [500];"site" [502];rw-r--r--;0 . 2014-01-24 18:12:44.827 Remote file '/home/site/www/forum/gallery/mcp/index.htm' [2011-03-27T21:32:01.000Z] [0] is modified comparing to local file 'Z:\home\site\www\forum\gallery\mcp\index.htm' [2011-03-27T20:32:01.000Z] [0] . 2014-01-24 18:12:44.829 Copying "/home/site/www/forum/gallery/mcp/index.htm" to local directory started. . 2014-01-24 18:12:45.029 Preserving timestamp [2011-03-27T21:32:01.000Z]
and then
Z:\home\site\www\forum\gallery\mcp>dir Содержимое папки Z:\home\site\www\forum\gallery\mcp 24.01.2014 03:09 <DIR> . 24.01.2014 03:09 <DIR> .. 27.03.2011 23:32 0 index.htm
local timezone +3, DTS is permanent.
. 2014-01-24 18:12:43.146 Time zone: Current: GMT+3, Standard: GMT+3, DST: GMT+4, DST Start: 30.12.1899, DST End: 30.12.1899