Problem with preserve timestamp

Advertisement

Guest

Problem with preserve timestamp

Hi,
Sometimes when uploading files, the timestamp isn't beeing set correctly. It gets the date right, but sometimes forgets to add the time, so it will show something like 31.01.2003 0:00.
I don't know exactly what causes this, but it seems to happen to files that have been modified recently, 0-2 minutes ago. If i copy the same file later, the time is changed correctly.
(Using build #122, ssh 2)

P.S. A great program you have here. Don't know what i'd do without WinSCP. Keep up the good work. :)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Problem with preserve timestamp

Please next time this happens, check whether file timestamp is really set wrong or only wrong value is displayed in panel.

Reply with quote

alaldi
Joined:
Posts:
1

Re: Problem with preserve timestamp

martin wrote:

Please next time this happens, check whether file timestamp is really set wrong or only wrong value is displayed in panel.

When i log in with putty and do a 'ls -l', i get:
-rw-rw-r-- 1 xxxxx xxxxxxxx 6146 Jan 31 2003 xxxx.xxx
but it should be like this:
-rw-rw-r-- 1 xxxxx xxxxxxxx 6146 Jan 31 16:35 xxxx.xxx

However, when i do a 'ls -l --full-time' It shows the time correctly..

Later i tried with an another server and it was working fine. So i guess it must be a bug in the server's software. Sorry for the confusion.

Reply with quote

martin
Site Admin
martin avatar

Re: Problem with preserve timestamp

When date in directory listing has format "mmm dd yyyy", WinSCP displayes time 00:00. However, this usualy happens only for files older than 1 year. I have no idea why your server does this for file modified today. I cannot use --full-time because IFAIK it is not compatible with all servers/shells.

Reply with quote

Advertisement

You can post new topics in this forum