LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-28-2008, 07:30 AM   #1
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Rep: Reputation: 16
Question Day Light Saving update in the NTP


Hi Guys,

We have our NTP server SERVER-NTP which sync its time with the server ntp0.nl.uu.net and time.nist.gov. And all other devices sync their time with our server SERVER-NTP. Now from 1st June the time in our country will increase to 1 hour for Day Light saving. I need to update my NTP server also . Any clue how to do that . Or can any one suggest me any server with
GMT+6 time as currently we have GMT+5 time. Any Clue ?
 
Old 05-28-2008, 07:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
NTP has nothing at all to do with timezones. it uses a single global timestamp which is then adjusted later to be offset with timezones and seasonal changes.
 
Old 05-28-2008, 11:03 AM   #3
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Not sure how Centos does it, but Debian has a directory /usr/share/zoneinfo. This contains files for each country or timezone within the country, detailing daylignt saving arrangements for the zone. Normally linux/unix machines are globally synced to UTC (Universal time=Greenwich Mean Time) and the system uses the zoneinfo files to convert UTC to local time.

Countries/regions change the daylight savings rules all the time. You just have to get an updated zoneinfo file. It might just be a matter of updating a package.
 
Old 05-28-2008, 11:45 AM   #4
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
I am little confused from the above two replies. You mean i dont have to change any thing on the ntp server but i have to change timezone setting on all my machine ?. I mostly have Centos 4.4 machine and few Solaris 9 servers as well.
 
Old 05-28-2008, 02:22 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
if this is normal annual daylight savings, then you do nothing at all. It'd be a pretty crap system if you did don't you think??

if your country has recently changed it's policy on daylight savings, then your zone files might be outdated, which is what the other post is about. I think Canada did this last year.
 
Old 05-29-2008, 01:33 AM   #6
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
Dear acid_kewpie,

Yes this policy is new implemented in our country. So according to you guys i have to update the zoneinfo files on all my servers right ?. Or i only have to update the zoneinfo on my NTP server.
 
Old 05-29-2008, 04:00 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
OK, last time. NTP is not related to timezones. Any device within a timezone whcih has changed will need to be updated.
 
Old 05-29-2008, 08:36 AM   #8
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
If i only update the timezone on the NTP server then the time of NTP server will be updated. Then all the machine update their time from NTP ??
 
Old 05-29-2008, 08:47 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Why are you not reading what I keep saying? There is no timezone in an NTP request. it is a timestamp. You seem to be really missing the fundamental point of NTP and timezones in the wider picture. I can use an NTP server in New York, Singapore, London, they all give THE SAME time, and the client then adjusts it.

Last edited by acid_kewpie; 05-29-2008 at 08:48 AM.
 
Old 05-29-2008, 10:52 AM   #10
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
OK.I got it. Thanks.
 
  


Reply


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
day light savings patch for RH8,RH9 and FC5 manish_meet_in Linux - General 3 03-06-2007 06:33 PM
Day light savings time issues ddzc Linux - Software 2 02-14-2007 05:21 PM
Day Light Savings Patch 2007 haiders Linux - Software 5 02-06-2007 12:30 PM
LXer: Glade 3 sees the light of day LXer Syndicated Linux News 0 08-21-2006 03:03 AM
Linux saving the day, setting up MS. jschiwal Mandriva 1 08-26-2003 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration