Page 1 of 1

Any ideas?

Posted: Wed Apr 17, 2024 9:34 am
by Offirest1977
Has anybody run into a problem with Switch generating future timestamps on files? I have a flow that brings in pdfs from FTP and pdf travels through several mini flows. The first thing Switch does is to park a copy of the original file in a folder. This file (original) sometimes will show timestamps about 6 hours into the future - sometimes more (not consistent). Along the way in the flow, I can look at a copy of the same file that has current timestamp. FTP timestamp shows clock is correct before Switch picks it up. Switch server computer clock shows correct. Jobs server computer clock where original is parked shows correct. Any ideas?

Re: Any ideas?

Posted: Wed Apr 17, 2024 10:14 am
by magnussandstrom
Yes, I've experienced this when fetching files from a specific client FTP. When I manually login to the FTP the timestamps are correct, also when a manually download a file (Cyberduck). But when Switch is grabbing the file the timestamps are two hours in the future (always the same). In our case it really doesn't matter so I did not dig any further into it. My initial thoughts was that some clock at the FTP server side was incorrectly set.

Re: Any ideas?

Posted: Wed Apr 17, 2024 12:19 pm
by jan_suhr
Check the time on the Switch server.

Either the FTP or the Switch runs on GMT.

Re: Any ideas?

Posted: Wed Apr 17, 2024 1:26 pm
by freddyp
On Mac you can use "Execute command" at the beginning of the flow to "touch" the file. That updates the timestamp of the file. On Windows you can apparently do it with a variant of the copy command: copy /b filename.ext +,,

Re: Any ideas?

Posted: Wed May 08, 2024 9:47 am
by amrshll
freddyp wrote: Wed Apr 17, 2024 1:26 pm On Mac you can use "Execute command" at the beginning of the flow to "touch" the file. That updates the timestamp of the file. On Windows you can apparently do it with a variant of the copy command: copy /b filename.ext +,,
oh i really didn't pay attention to it. thanks for reminding