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 10-08-2015, 01:19 AM   #1
SimonTap
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
Confussion about how linux and ntpd deal with time


0
down vote
favorite


I am running an NTP-Server on my lubuntu 15.04 box. The server uses the local system clock as its only time source.

/etc/ntp.conf

Code:
driftfile /var/lib/ntp/ntp.drift
server 127.127.1.0 prefer
restrict 127.127.1.0
fudge 127.127.1.0 stratum 10
Timezone of the server is GMT+1 (due to summertime it results in UTC+2 at the moment). When I set the clock using date I see the time is 00:00:00 which is fine.

Code:
user@ubuntu:$ sudo  date --set=00:00:00
Mi 7. Okt 00:00:00 GMT+1 2015
user@ubuntu:$ date
Mi 7. Okt 00:00:02 GMT+1 2015
If a ntp-client queries the time it gets 01:00:00 as the value of the transmit timestamp. Can anyone explain to me why? As ntp relies on UTC I would expect it to report 22:00:00.

Last edited by SimonTap; 10-08-2015 at 06:37 AM. Reason: Solved
 
Old 10-08-2015, 06:35 AM   #2
SimonTap
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
I was able to solve it. Due to the possix standard the signs of GMT in
Code:
zoneinfo/Etc/
are exactly the opposite of what one would expect. When I say berlin (germany) is in GMT+1 the filename is
Code:
zoneinfo/Etc/GMT-1
 
  


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
ntpd - time server, not time source bramankp Linux - Server 4 07-15-2011 08:58 AM
ntpdate/ntpd time is in UTC instead of local time? m4rtin Linux - Software 7 05-06-2011 07:57 AM
[SOLVED] Time sync in ntpd Hariharan Linux - Software 4 09-24-2010 02:36 AM
[SOLVED] How often does ntpd sync time with its servers? Mr. Alex Linux - Software 2 08-31-2010 10:23 AM
tar confussion abridge Linux - Newbie 8 04-20-2005 03:14 AM

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

All times are GMT -5. The time now is 10:57 PM.

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