Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-01-2007, 11:01 AM   #1
Registered: Apr 2005
Posts: 36

Rep: Reputation: 15
NTP Server giving central time instead of eastern time


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 #StratumOne
server #StratumOne
server #StratumOne
server #Stratumtwo
server #Stratumtwo

ntpq -p

remote refid st t when poll reach delay offset jitter
=============================================================== .INIT. 16 u - 64 0 0.000 0.000 4000.00 2 u 19 64 1 34.865 -0.144 0.001 .WWV. 1 u 18 64 1 50.419 -19.611 0.001 2 u 17 64 1 154.118 34.565 0.001
mail.boutiqueho 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/", 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,
Old 11-01-2007, 12:24 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
Old 11-01-2007, 01:24 PM   #3
Registered: Apr 2005
Posts: 36

Original Poster
Rep: Reputation: 15

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?
Old 11-01-2007, 04:04 PM   #4
Registered: Jan 2006
Distribution: Various versions of Red Hat Fedora Core and Ubuntu
Posts: 40

Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP time sync with windows 2000 AD time csghosh Linux - Enterprise 7 02-24-2012 03:46 PM
debian: Get time from ntp (network time protocol) servers checkmate3001 Member Success Stories 0 09-30-2007 06:36 PM
Running your own NTP Time Server darkarcon2015 Red Hat 1 05-16-2006 12:06 PM
NTP Time Server on FC4 jdavidbakr Linux - Software 2 08-25-2005 08:44 AM
setting my time server (ntp) Moses420ca Linux - Newbie 9 08-28-2003 03:34 PM

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration