in reply to Getting the timestamp of a file

If the timestamp of the file you're checking is off, try checking whatever makes that file. I'd bet it's either a different machine that's an hour off, or the file is being made at a different time than you think.

Also, if it's consistently an hour off, you could just add it back in as part of the script! Kind of simplistic and it can cause other problems later if the timestamp gets corrected, but it may work for your purpose.