Date file modified - multiple time zones

(imported topic written by khanand91)

quick question :slight_smile: on file dates

if i edit a file on a server in New York for example, download the file to a relay in London >

then use relevance to compare the file modified date on the london relay, say some code that checks to see if the file has been modified in the last 10 minutes >

if yes then download it.

My question is regarding the different time zones, how could i make this check work for a a file thats updated in one location but the needs the if modified date check in multiple time zones.

thanks

(imported comment written by jessewk)

I think you’d be better off checking if the sha1 has changed from a previously known value.

However, if you compare times for equality and both times contain timezone information, the conversion will be handled automatically. For example:

Q: “Mon, 06 Apr 2009 20:00:00 -0700” as time = “Tue, 07 Apr 2009 04:00:00 +0100” as time

A: True

In either case, I don’t think you’ll be able to get the behavior you want b/c you cannot check the remote file for sha1 or modification date without first downloading it. Also, if you don’t supply a hash in your download statement you’ll lose all the caching capabilities of the relay hierarchy.

So… what exactly are you trying to accomplish?

(imported comment written by khanand91)

thanks for the reply …

i’m trying to work on a solution that i posted here . …

http://forum.bigfix.com/viewtopic.php?id=2976

I’ve just seen the new feature entitled ‘dynamic downloading’ in the winactions guide for client 7.2 … page 7 and the example at the bottam would help me enormously … but alas we are just rolling out 7.1.x … had we not encoutered major issues with the last couple of attempts to deploy version 7.x … we might have been on 7.2 by now :expressionless:

so i need to find the best solution to download multiple files to multiple servers that change every 10 minutes or so, using a control file probally … the downloads need to use the relay infrastructure as well just to complicate thuns more . .

(imported comment written by jessewk)

Hi Khanand,

I took a look at your other post. It is possible to get something working that will meet your requirements, but it’s going to be a decently large project. My advice at this point would be to contact our professional services department and see if they can scope out a solution for you.

Jesse