LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NTP Server giving central time instead of eastern time (https://www.linuxquestions.org/questions/linux-networking-3/ntp-server-giving-central-time-instead-of-eastern-time-596363/)

wjleon 11-01-2007 11:01 AM

NTP Server giving central time instead of eastern time
 
Hi,

I have installed and configured an NTP Server in one of my Linux Servers. I am located in Florida which, of course, is Eastern Time but when I type the date command it displays central time even though I set the TZ variable to be EST.

Here is some input you could use o help me find out what is happening:

Server lists (from the ntp.conf file):

##
## Outside source of synchronized time
##
## server xx.xx.xx.xx # IP address of server
server lerc-dns.lerc.nasa.gov #StratumOne
server ncnoc.ncren.net #StratumOne
server otc1.psu.edu #StratumOne
server tock.nap.com.ar #Stratumtwo
server ntp.ragingfist.net #Stratumtwo

ntpq -p

remote refid st t when poll reach delay offset jitter
=============================================================== lerc-dns.grc.na .INIT. 16 u - 64 0 0.000 0.000 4000.00
ncnoc.ncren.net 128.109.131.102 2 u 19 64 1 34.865 -0.144 0.001
otc1.psu.edu .WWV. 1 u 18 64 1 50.419 -19.611 0.001
200.10.140.1.ad 192.5.41.41 2 u 17 64 1 154.118 34.565 0.001
mail.boutiqueho 150.101.162.104 4 u 16 64 1 271.909 22.246 0.001


ntpq -crv

assID=0 status=c011 sync_alarm, sync_unspec, 1 event, event_restart,
version="ntpd 4.2.0a@1.1196-r Thu Jun 29 17:48:00 UTC 2006 (1)"?,
processor="x86_64", system="Linux/2.6.16.21-0.8-smp", leap=11,
stratum=16, precision=-20, rootdelay=0.000, rootdispersion=0.690,
peer=0, refid=INIT,
reftime=00000000.00000000 Thu, Feb 7 2036 1:28:16.000, poll=6,
clock=0xcad36967.d19e94ab, state=1, offset=0.000, frequency=3.410,
noise=0.001, jitter=0.001, stability=0.000

I also tried to set the time by hand using the “date –d” command but it turns back to central time, i.e. TZ keeps being EST but the time is central time.

So, can you –please- tell me what should I do to solve this problem?

Thanks in advance,
Wilmer

acid_kewpie 11-01-2007 12:24 PM

ntp doesn't have any knowledge of timezones. they provide a universal UTC time signature which is interpreted by a local system as a time relative to the local system.

wjleon 11-01-2007 01:24 PM

Hi,

Thanks for answering ... but what you said gives me no idea of what can be going wrong. It is 2:30 p.m. here in Florida and my server says it's 1:30 p.m.

Any clue?

cachemonet 11-01-2007 04:04 PM

The timezone is set by the /etc/localtime data file.

do a cp /usr/share/zoneinfo/EST /etc/localtime


The /usr/share/zoneinfo directory contains data files for all timezones


All times are GMT -5. The time now is 10:04 AM.