Jump to content

Time Sync - Multiple Time Zones


Recommended Posts

Guest Dragon
Posted

Hi,

 

I have a bit strange question. I have this application that is hard coded

for a particular time zone. So the server has to be set to this time zone.

All my other servers are on local timezone. My problem is that I would like

to sync time on all my servers.

 

So if my application server is set to EST and my local timezone is PST, I

want both server to say the local time of 10AM instead of having both

servers 3 hours apart because of the time zone. So, is there any script,

batch file, utility etc that I can use to force this time sync? I also want

to make sure that I can force-sync a server even if its time is off by

months.

 

Thanks.

  • Replies 4
  • Created
  • Last Reply
Guest Bruce Sanderson
Posted

Re: Time Sync - Multiple Time Zones

 

The whole purpose of time synchronization is to ensure that all the

computers have the correct time regardless of where they are or what time

zone they are configured to be in. Thus, the time of day is stored

internally and synchronized as (esentially) UTC (see

http://en.wikipedia.org/wiki/UTC) and adjusted for display to humans based

on the time zone selected for the computer.

 

The only answer to your problem I can think of is to turn off the Windows

time synchronization and build yourself a custom script or application that

runs at startup and periodically thereafter that gets the (UTC) time from a

reliable source, then adjusts it to time zone you want (EST is UTC - 5

hours).

 

The net time \\computername will get the current time from another computer

and display it (human readable) adjusted for that computer's time zone and

the local computer's time zone (if they are different).

 

You will also have to take into account Daylight Savings Time changes.

--

Bruce Sanderson

http://members.shaw.ca/bsanders

 

It is perfectly useless to know the right answer to the wrong question.

 

 

 

"Dragon" <noSpam_Badill@hotmail.com> wrote in message

news:%23NVa3%23ihIHA.1184@TK2MSFTNGP04.phx.gbl...

> Hi,

>

> I have a bit strange question. I have this application that is hard coded

> for a particular time zone. So the server has to be set to this time zone.

> All my other servers are on local timezone. My problem is that I would

> like to sync time on all my servers.

>

> So if my application server is set to EST and my local timezone is PST, I

> want both server to say the local time of 10AM instead of having both

> servers 3 hours apart because of the time zone. So, is there any script,

> batch file, utility etc that I can use to force this time sync? I also

> want to make sure that I can force-sync a server even if its time is off

> by months.

>

> Thanks.

>

Guest Dragon
Posted

Re: Time Sync - Multiple Time Zones

 

Thank you Bruce. I completely agree with you on this but until vendor fixes

this app, unfortunately, I am stuck with it.

 

Would you be able to provide me with some hints for a script? Here is what I

am thinking:

 

On the system with correct time (Source) schedule a batch job to run on a

regular basis. Job will create text files with date and time:

 

time /t > time.txt

date /t > date.txt

 

 

On the App server:

 

time << source\time.txt

date << source\date.txt

 

The only problem I have is "date /t > date.txt" does not give me clean date

to be used as an argument.

 

 

Am I doing it incorrectly? Any other ideas?

 

Thanks!

 

"Bruce Sanderson" <bsanders@newsgroups.nospam> wrote in message

news:%23LtV2iuhIHA.4376@TK2MSFTNGP05.phx.gbl...

> The whole purpose of time synchronization is to ensure that all the

> computers have the correct time regardless of where they are or what time

> zone they are configured to be in. Thus, the time of day is stored

> internally and synchronized as (esentially) UTC (see

> http://en.wikipedia.org/wiki/UTC) and adjusted for display to humans based

> on the time zone selected for the computer.

>

> The only answer to your problem I can think of is to turn off the Windows

> time synchronization and build yourself a custom script or application

> that runs at startup and periodically thereafter that gets the (UTC) time

> from a reliable source, then adjusts it to time zone you want (EST is

> UTC - 5 hours).

>

> The net time \\computername will get the current time from another

> computer and display it (human readable) adjusted for that computer's time

> zone and the local computer's time zone (if they are different).

>

> You will also have to take into account Daylight Savings Time changes.

> --

> Bruce Sanderson

> http://members.shaw.ca/bsanders

>

> It is perfectly useless to know the right answer to the wrong question.

>

>

>

> "Dragon" <noSpam_Badill@hotmail.com> wrote in message

> news:%23NVa3%23ihIHA.1184@TK2MSFTNGP04.phx.gbl...

>> Hi,

>>

>> I have a bit strange question. I have this application that is hard coded

>> for a particular time zone. So the server has to be set to this time

>> zone. All my other servers are on local timezone. My problem is that I

>> would like to sync time on all my servers.

>>

>> So if my application server is set to EST and my local timezone is PST, I

>> want both server to say the local time of 10AM instead of having both

>> servers 3 hours apart because of the time zone. So, is there any script,

>> batch file, utility etc that I can use to force this time sync? I also

>> want to make sure that I can force-sync a server even if its time is off

>> by months.

>>

>> Thanks.

>>

>

Guest Peter Lawton
Posted

Re: Time Sync - Multiple Time Zones

 

Don't forget that Kerberos domain authentication needs all internal clocks

to be set within 5 mins of each other

 

Peter Lawton

 

"Dragon" <noSpam_Badill@hotmail.com> wrote in message

news:OuBIvruhIHA.5780@TK2MSFTNGP06.phx.gbl...

> Thank you Bruce. I completely agree with you on this but until vendor

> fixes this app, unfortunately, I am stuck with it.

>

> Would you be able to provide me with some hints for a script? Here is what

> I am thinking:

>

> On the system with correct time (Source) schedule a batch job to run on a

> regular basis. Job will create text files with date and time:

>

> time /t > time.txt

> date /t > date.txt

>

>

> On the App server:

>

> time << source\time.txt

> date << source\date.txt

>

> The only problem I have is "date /t > date.txt" does not give me clean

> date to be used as an argument.

>

>

> Am I doing it incorrectly? Any other ideas?

>

> Thanks!

>

> "Bruce Sanderson" <bsanders@newsgroups.nospam> wrote in message

> news:%23LtV2iuhIHA.4376@TK2MSFTNGP05.phx.gbl...

>> The whole purpose of time synchronization is to ensure that all the

>> computers have the correct time regardless of where they are or what time

>> zone they are configured to be in. Thus, the time of day is stored

>> internally and synchronized as (esentially) UTC (see

>> http://en.wikipedia.org/wiki/UTC) and adjusted for display to humans

>> based on the time zone selected for the computer.

>>

>> The only answer to your problem I can think of is to turn off the Windows

>> time synchronization and build yourself a custom script or application

>> that runs at startup and periodically thereafter that gets the (UTC) time

>> from a reliable source, then adjusts it to time zone you want (EST is

>> UTC - 5 hours).

>>

>> The net time \\computername will get the current time from another

>> computer and display it (human readable) adjusted for that computer's

>> time zone and the local computer's time zone (if they are different).

>>

>> You will also have to take into account Daylight Savings Time changes.

>> --

>> Bruce Sanderson

>> http://members.shaw.ca/bsanders

>>

>> It is perfectly useless to know the right answer to the wrong question.

>>

>>

>>

>> "Dragon" <noSpam_Badill@hotmail.com> wrote in message

>> news:%23NVa3%23ihIHA.1184@TK2MSFTNGP04.phx.gbl...

>>> Hi,

>>>

>>> I have a bit strange question. I have this application that is hard

>>> coded for a particular time zone. So the server has to be set to this

>>> time zone. All my other servers are on local timezone. My problem is

>>> that I would like to sync time on all my servers.

>>>

>>> So if my application server is set to EST and my local timezone is PST,

>>> I want both server to say the local time of 10AM instead of having both

>>> servers 3 hours apart because of the time zone. So, is there any script,

>>> batch file, utility etc that I can use to force this time sync? I also

>>> want to make sure that I can force-sync a server even if its time is off

>>> by months.

>>>

>>> Thanks.

>>>

>>

>

>

Guest Dragon
Posted

Re: Time Sync - Multiple Time Zones

 

Thank you Peter. This is why I do not have that server part of the AD

structure.

 

 

"Peter Lawton" <dummy@dummy.domain> wrote in message

news:eYJLfk0hIHA.748@TK2MSFTNGP04.phx.gbl...

> Don't forget that Kerberos domain authentication needs all internal clocks

> to be set within 5 mins of each other

>

> Peter Lawton

>

> "Dragon" <noSpam_Badill@hotmail.com> wrote in message

> news:OuBIvruhIHA.5780@TK2MSFTNGP06.phx.gbl...

>> Thank you Bruce. I completely agree with you on this but until vendor

>> fixes this app, unfortunately, I am stuck with it.

>>

>> Would you be able to provide me with some hints for a script? Here is

>> what I am thinking:

>>

>> On the system with correct time (Source) schedule a batch job to run on a

>> regular basis. Job will create text files with date and time:

>>

>> time /t > time.txt

>> date /t > date.txt

>>

>>

>> On the App server:

>>

>> time << source\time.txt

>> date << source\date.txt

>>

>> The only problem I have is "date /t > date.txt" does not give me clean

>> date to be used as an argument.

>>

>>

>> Am I doing it incorrectly? Any other ideas?

>>

>> Thanks!

>>

>> "Bruce Sanderson" <bsanders@newsgroups.nospam> wrote in message

>> news:%23LtV2iuhIHA.4376@TK2MSFTNGP05.phx.gbl...

>>> The whole purpose of time synchronization is to ensure that all the

>>> computers have the correct time regardless of where they are or what

>>> time zone they are configured to be in. Thus, the time of day is stored

>>> internally and synchronized as (esentially) UTC (see

>>> http://en.wikipedia.org/wiki/UTC) and adjusted for display to humans

>>> based on the time zone selected for the computer.

>>>

>>> The only answer to your problem I can think of is to turn off the

>>> Windows time synchronization and build yourself a custom script or

>>> application that runs at startup and periodically thereafter that gets

>>> the (UTC) time from a reliable source, then adjusts it to time zone you

>>> want (EST is UTC - 5 hours).

>>>

>>> The net time \\computername will get the current time from another

>>> computer and display it (human readable) adjusted for that computer's

>>> time zone and the local computer's time zone (if they are different).

>>>

>>> You will also have to take into account Daylight Savings Time changes.

>>> --

>>> Bruce Sanderson

>>> http://members.shaw.ca/bsanders

>>>

>>> It is perfectly useless to know the right answer to the wrong question.

>>>

>>>

>>>

>>> "Dragon" <noSpam_Badill@hotmail.com> wrote in message

>>> news:%23NVa3%23ihIHA.1184@TK2MSFTNGP04.phx.gbl...

>>>> Hi,

>>>>

>>>> I have a bit strange question. I have this application that is hard

>>>> coded for a particular time zone. So the server has to be set to this

>>>> time zone. All my other servers are on local timezone. My problem is

>>>> that I would like to sync time on all my servers.

>>>>

>>>> So if my application server is set to EST and my local timezone is PST,

>>>> I want both server to say the local time of 10AM instead of having both

>>>> servers 3 hours apart because of the time zone. So, is there any

>>>> script, batch file, utility etc that I can use to force this time sync?

>>>> I also want to make sure that I can force-sync a server even if its

>>>> time is off by months.

>>>>

>>>> Thanks.

>>>>

>>>

>>

>>

>


×
×
  • Create New...