Bug? Timestamp issue: Files downloaded between 12am and 1am
So if I use session.ListDirectory, the timestamps on the files I am downloading come up with the correct hour and minute.
When I use session.GetFiles, the downloaded files come reset to 12:00am for any files between 12am and 1am, all the others are correct though.
< 2016-09-07 00:36:17.231 150 Here comes the directory listing. < 2016-09-07 00:36:17.231 226 Directory send OK. . 2016-09-07 00:36:17.231 drwxr-xr-x 2 ftp ftp 4096 Sep 07 00:28 . . 2016-09-07 00:36:17.231 drwxr-xr-x 2 ftp ftp 4096 Sep 07 00:28 .. . 2016-09-07 00:36:17.231 -rw------- 1 ftp ftp 1813856 Sep 07 00:28 TEST0906.ZIP . 2016-09-07 00:36:17.247 Directory listing successful . 2016-09-07 00:36:17.247 ..;D;0;1899-12-30T06:00:00.000Z;"" [0];"" [0];---------;0 . 2016-09-07 00:36:17.247 TEST0906.ZIP;-;1813856;2016-09-07T10:28:00.000Z;"ftp" [0];"ftp" [0];rw-------;0 < 2016-09-07 00:36:17.262 Script: D--------- 0 0 .. < 2016-09-07 00:36:17.278 Script: -rw------- 0 ftp ftp 1813856 Sep 7 5:28:00 2016 TEST0906.ZIP > 2016-09-07 00:36:17.434 Script: get -nopermissions -preservetime -transfer="binary" -- ".//TEST0906.ZIP" "C:\" . 2016-09-07 00:36:17.434 Listing file ".//TEST0906.ZIP". . 2016-09-07 00:36:17.434 Retrieving file information... > 2016-09-07 00:36:17.434 PWD < 2016-09-07 00:36:17.434 257 "/" > 2016-09-07 00:36:17.434 CWD /TEST0906.ZIP < 2016-09-07 00:36:17.434 550 Failed to change directory. > 2016-09-07 00:36:17.434 TYPE I < 2016-09-07 00:36:17.434 200 Switching to Binary mode. > 2016-09-07 00:36:17.434 SIZE /TEST0906.ZIP < 2016-09-07 00:36:17.434 213 1813856 > 2016-09-07 00:36:17.450 MDTM /TEST0906.ZIP < 2016-09-07 00:36:17.450 213 20160907002849 . 2016-09-07 00:36:17.450 Retrieving file information successful . 2016-09-07 00:36:17.450 TEST0906.ZIP;-;1813856;2016-09-07T05:00:00.000Z;"" [0];"" [0];---------;0 . 2016-09-07 00:36:17.450 Copying 1 files/directories to local directory "C:\" . 2016-09-07 00:36:17.450 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: . 2016-09-07 00:36:17.450 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0 . 2016-09-07 00:36:17.450 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml . 2016-09-07 00:36:17.465 File: '//TEST0906.ZIP' [2016-09-07T05:00:00.000Z] [1813856] . 2016-09-07 00:36:17.465 Copying "//TEST0906.ZIP" to local directory started. . 2016-09-07 00:36:17.465 Binary transfer mode selected. . 2016-09-07 00:36:17.481 Starting download of /TEST0906.ZIP > 2016-09-07 00:36:17.481 TYPE I < 2016-09-07 00:36:17.496 200 Switching to Binary mode. > 2016-09-07 00:36:17.496 PASV < 2016-09-07 00:36:17.496 227 Entering Passive Mode (192,168,111,2,99,196). > 2016-09-07 00:36:17.496 RETR TEST0906.ZIP < 2016-09-07 00:36:17.496 150 Opening BINARY mode data connection for TEST0906.ZIP (1813856 bytes). < 2016-09-07 00:36:17.543 226 Transfer complete. . 2016-09-07 00:36:17.668 Download successful . 2016-09-07 00:36:17.668 Transfer done: '//TEST0906.ZIP' [1813856]
So these couple of lines from the log above show that the time is losing its minutes when downloading (2016-09-07T05:00:00.000Z):
. 2016-09-07 00:36:17.450 TEST0906.ZIP;-;1813856;2016-09-07T05:00:00.000Z;"" [0];"" [0];---------;0 . 2016-09-07 00:36:17.465 File: '//TEST0906.ZIP' [2016-09-07T05:00:00.000Z] [1813856]
Where just before the download, it shows the correct time: Sep 07 00:28 TEST0906.ZIP
or from the script line Sep 7 5:28:00 2016 TEST0906.ZIP
Any idea what might be causing this? Thanks!