some problems displaying date when "not" a leap year
Strange "non" leap year anomaly seen in WinSCP V3.9.3 build 7156
Discovered last night during real world scenario.
My colleague with WinSCP V3.9.3 client in UTC-5 timezone, while I was in UTC+0 timezone with same WinSCP V3.9.3 client on Win7.
Shortly after midnight for me - I saw sensible timestamps for freshly deposited files.
However, my colleague was seeing WinSCP "timetravel" back to 2016!
To my knowledge, my colleague was not tweaking timezone setting.
We were simply hitting "refresh" occasionally while anxiously waiting for a 3rd party to upload fresh files into our shared FTP.
I saw the fresh files in my directory listing - sorted by "changed" column.
He could not initially see the fresh files - because the fresh files were actually one year older - so they were at the other end of the directory listing!
I didn't have time to investigate last night - but had a few minutes this morning to experiment with a synthetic reproducer - using my PC alone:
My Win7 PC is in UTC+0 timezone, it is currently 10:08 UTC+0 1st March 2017.
I launch WinSCP V3.9.3 build 7156 and open FTP site with files having files with timestamp of 01:51 1st March 2017.
The files are displayed in WinSCP with correct/expected timestamp.
Next, from my PC taskbar, I change my timezone to UTC-11 (chosen so that I force the PC to "yesterday").
My Outlook pane refreshes automatically to take notice of the new timezone.
Within existing WinSCP session, I click the refresh icon for the remote directory.
The files in the remote directory now show a timestamp of 01:51 1st March 2016 - ie. the year went back, but other fields unchanged.
If I close and then re-open WinSCP - then the files are displayed with correct 14:51 UTC-11 28th Feb 2017 date.
Similar 1-year anomaly seen if my PC begins in UTC-11 timezone.
I launch WinSCP, open the FTP site, and the files have correct 14:51 UTC-11 28th Feb 2017 date.
I change timezone on my PC to UTC+0 (chosen so that I force the PC to "tomorrow").
My Outlook pane refreshes automatically to take notice of the new timezone.
Within existing WinSCP session, I click the refresh icon for the remote directory.
The files in the remote directory now show a timestamp of 14:51 28th Feb 2018 - ie. the year went forward, but other fields unchanged.
Weird!
Discovered last night during real world scenario.
My colleague with WinSCP V3.9.3 client in UTC-5 timezone, while I was in UTC+0 timezone with same WinSCP V3.9.3 client on Win7.
Shortly after midnight for me - I saw sensible timestamps for freshly deposited files.
However, my colleague was seeing WinSCP "timetravel" back to 2016!
To my knowledge, my colleague was not tweaking timezone setting.
We were simply hitting "refresh" occasionally while anxiously waiting for a 3rd party to upload fresh files into our shared FTP.
I saw the fresh files in my directory listing - sorted by "changed" column.
He could not initially see the fresh files - because the fresh files were actually one year older - so they were at the other end of the directory listing!
I didn't have time to investigate last night - but had a few minutes this morning to experiment with a synthetic reproducer - using my PC alone:
My Win7 PC is in UTC+0 timezone, it is currently 10:08 UTC+0 1st March 2017.
I launch WinSCP V3.9.3 build 7156 and open FTP site with files having files with timestamp of 01:51 1st March 2017.
The files are displayed in WinSCP with correct/expected timestamp.
Next, from my PC taskbar, I change my timezone to UTC-11 (chosen so that I force the PC to "yesterday").
My Outlook pane refreshes automatically to take notice of the new timezone.
Within existing WinSCP session, I click the refresh icon for the remote directory.
The files in the remote directory now show a timestamp of 01:51 1st March 2016 - ie. the year went back, but other fields unchanged.
If I close and then re-open WinSCP - then the files are displayed with correct 14:51 UTC-11 28th Feb 2017 date.
Similar 1-year anomaly seen if my PC begins in UTC-11 timezone.
I launch WinSCP, open the FTP site, and the files have correct 14:51 UTC-11 28th Feb 2017 date.
I change timezone on my PC to UTC+0 (chosen so that I force the PC to "tomorrow").
My Outlook pane refreshes automatically to take notice of the new timezone.
Within existing WinSCP session, I click the refresh icon for the remote directory.
The files in the remote directory now show a timestamp of 14:51 28th Feb 2018 - ie. the year went forward, but other fields unchanged.
Weird!