Hello all.
I'm writing a FTP client in Perl. As a safety check I want to ensure I only download those files that have not been modified in, say, 900 seconds. To determine the age of the file I'm running a FTP dir list through
File::Listing's
parse_dir function. I then compare the diffrence between the current time and the last modified time of the file to see if I should download it or not. This works like a charm for all my local servers because the local time is the same on each server.
When I run my prog to grab files from a few remote servers I'm running into problems because the local time (and hence last mod time) on those servers varies depending on timezone. The last mod time (returned from
parse_dir) is sometimes a time in the future (when compared with
my localtime).
To be honest, I'm stumped as to proceed.
Any help at this point would be
great!