Operating System - Linux
1823249 Members
3159 Online
109648 Solutions
New Discussion юеВ

NTP client not using my Timezone problem

 
Corey Douglas
Occasional Advisor

NTP client not using my Timezone problem

Using an NTP server on LAN for my EST nodes and is OK.

Deployed several RHES nodes to Chicago-a CST site, connect to the same NTP server but it tries to set them to the EST time not CST.

My boxes in chicago seem to be set properly for their local timezone:
date +%Z%z = CST-0600
/etc/localtime is the Chicago file

Is the a way to force NTP client to translate the time to GMT -0600 or something like that?

Or can anybody tell me what the real issue is?
thanks
4 REPLIES 4
Siert Zijl
Advisor

Re: NTP client not using my Timezone problem

As far as I know NTP sync's time correctly using your NTP clients timezone. No matter what the timezone of the remote NTP server is.

If you have a NTP server using timezone EST and clients using timezone CST, the time will still sync correctly ont he client (CST)

Please verify that your local timezone settings are oke: redhat-config-time or system-config-time.

Linux system administrator
James R. Ferguson
Acclaimed Contributor

Re: NTP client not using my Timezone problem

Hi Corey:

NTP operates in UTC. It's your server that represents it's view of the correct time in local units that represent a plus of minus offset from UTC.

I would verify that your Chicago servers are indeed configurated with the correct timezone.

I would also verify (with 'ntpq -p') that you have indeed achieved synchronization with a time source. An asterisk ("*") character in the leftmost column of the 'ntpq' output indicates synchronization.

If the time of your server and the NTP source differ by more than about 1000 seconds, no synchronization will occur.

Regards!

...JRF...
Corey Douglas
Occasional Advisor

Re: NTP client not using my Timezone problem

go figure.
today it works!
i must have fixed some TZ issue yesterday.
thanks all.
Corey Douglas
Occasional Advisor

Re: NTP client not using my Timezone problem

closed