Topic "Problem with preserve timestamp"

Author Message
Guest




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. Smile
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please next time this happens, check whether file timestamp is really set wrong or only wrong value is displayed in panel.
_________________
Martin Prikryl
alaldi
[View user's profile]

Joined: 2003-01-30
Posts: 1
prikryl 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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License