timestamp is OFF by an hour when using scripts

Advertisement

meliOnTheJob
Joined:
Posts:
5

timestamp is OFF by an hour when using scripts

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?

Reply with quote

Advertisement

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

Re: timestamp is OFF by an hour when using scripts

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?
https://winscp.net/eng/docs/timestamp#windows

Reply with quote

meliOnTheJob
Joined:
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.

Reply with quote

martin
Site Admin
martin avatar

Re: timestamp is OFF by an hour when using scripts

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.

Reply with quote

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
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.

Reply with quote

Advertisement

You can post new topics in this forum