Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: scripting with timezone offset

Please read FAQ. If that does not help, come back.

Anyway, can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
indiix2

scripting with timezone offset

Is it possible to pass a timezone offset using winscp in batch moe w/o calling a session? Or to use the preserver or "set" the timezone of the remote file to match the originating server after the fact?

My problem is that i synchronize 100s of thousands of files between 2 servers daily. Since 85% of the files don't change, it only grabs the new files. The problem is that any files that are "updated" at 11pm on any day are reported by winscp locally on the destination server as the next day, so they appear to be an entire day off. These files will always synchronize and copy during a "criteria=both" or "criteria=date". I'm trying to find a way to get them not to synchronize just for 1 hour offset. So i was thinking i could use timezone offset -1 to try and get the locals to seem like the same as the originating server. However i cannot seem to find an "option" or cmdline way to set the timezone offset to "-1". Is this even available?

Both servers have DST turned on and both are set to update to time.windows.com and are both exactly the same OS and have the same time.

Ideas?