LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 15
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
 
Old 11-01-2007, 12:24 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
wjleon
Member
 
Registered: Apr 2005
Posts: 36

Original Poster
Rep: Reputation: 15
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?
 
Old 11-01-2007, 04:04 PM   #4
cachemonet
Member
 
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
 
  


Reply



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 LinuxQuestions.org 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:48 AM.

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