in reply to Getting the timestamp of a file

Another thing to check... Be sure the time zone ($ENV{TZ}) in the environment that your script is running in agrees with the OS.