Topic "timestamp is OFF by an hour when using scripts"

Author Message
meliOnTheJob
[View user's profile]

Joined: 2013-01-31
Posts: 5
so we have a script that connects to the SFTP server, copy/transfer file from SFTP to PROD server, and then delete from SFTP server.
when the file is transferred, the time stamp is off by one hour ahead of the current time.
how can i correct this?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please provide more details. How do you check/compare the timestamp after transfer to find the offset? Can you attach a complete session log file showing upload of a single file and note what timestamp was set and what timestamp you expected?

What version of Windows are you using? If pre-Win7, have you read following article?
http://winscp.net/eng/docs/timestamp#windows
meliOnTheJob
[View user's profile]

Joined: 2013-01-31
Posts: 5
It's checked by looking at the folder to which the file was copied.

Do you want a complete session from the client or server?

The client is on a Win 7 box.
The script resides on Win 2008 server(Prod).
A user uploads a file manually to the sftp box.
User then logs into Prod and calls the script, which transfer the file from sftp box to prod and dev boxes, and deletes file from the sftp.

when the file is viewed on the prod and dev boxes, the time is a hour ahead.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Thanks for your report.
I have sent you an email with a debug version of WinSCP to address you have used to register on this forum.
meli_on_the_job

Guest


cant remember my pwd....

anyway - thanks prikryl.
appreciate your help.

After going back and forth w/ the user and trying to gather the info you requested, I decided to have the user try from a different machine, and it seems this issue only occurs when the file is uploaded from his machine :-/.
From the server, my machine, spare laptop etc, the timestamp is correct, so I'm really not sure where to go from here.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
meli_on_the_job wrote:
After going back and forth w/ the user and trying to gather the info you requested, I decided to have the user try from a different machine, and it seems this issue only occurs when the file is uploaded from his machine :-/.
From the server, my machine, spare laptop etc, the timestamp is correct, so I'm really not sure where to go from here.

If would be interested in the log (from his machine) anyway.
_________________
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