LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-30-2005, 08:12 PM   #1
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Question NTP and Daylight Savings Time


I'm really surprised I can't find this anywhere, but I've been all over google and the NTP doc site and can't find anything. I'm using ntpd and it didn't adjust my clock for daylight savings time. I've read that it does it slowly so as to not throw off processes that rely on time, but it's been over 12 hours and it's still exactly an hour ahead of the actual time. Is there a setting somewhere I missed to tell it about daylight savings?
 
Old 10-30-2005, 09:27 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
Is your hardware clock set to UTC or local time?

Lyle.
 
Old 10-30-2005, 09:34 PM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
I'm pretty sure it's local time, although I'm not 100% sure. "date -u" correctly shows UTC, if that means anything.
 
Old 10-30-2005, 09:49 PM   #4
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
Post the output of:

cat /etc/hardwareclock

Things work a lot smoother if you set your hardware clock to UTC. Daylight savings time changes work automatically.

NPT doesn't care about your time zone of if you've switched to or from daylight savings time; it only concerns itself with UTC.

Lyle.
 
Old 10-30-2005, 10:05 PM   #5
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
localtime

So how does the time change work then if NTP doesn't do it? What was that I read about it making small adjustments until the change was complete?

The few reasons I think I had for keeping it stored as localtime: 1) I saw something in the kernel config asking how it was stored, and I've had enough of kernel recompiles lately, 2) If I remember correctly, it's easy to run into a situation with Windows and Linux fighting over the time if the hardware is set to UTC, as in adjusting it to different times each time you reboot (I rarely use Windows but I keep it on the computer for certain apps that don't work otherwise and would rather not have to deal with that).

So is there no way to make it work automatically the way it's currently set up?
 
Old 10-30-2005, 10:45 PM   #6
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
glibc takes care of converting UTC to localtime; it has a database of timezone information it consults to present you with the correct local time. The correct local time could be different for different users logging into your machine from around the world. I guess it does some kind of workaround if your hardwareclock set to localtime.

I don't think there is a way to make it work automatically without setting it to UTC. Go on, it won't hurt much. Windows at least asks before it changes the time; just click "No" when it asks if you ever boot into Windows. The time will be wrong in Windows though. I think modern versions of Windows can work with the hardware clock set to UTC anyway.

Even if you have CONFIG_APM_RTC_IS_GMT set to yes, it won't be that big of a deal (your clock might be out by a few seconds after your computer wakes up.) Next time remember not to set this. This only affects Advanced Power Management (APM.)

Lyle.
 
Old 10-31-2005, 03:54 AM   #7
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
If you have a dual boot machine linux/windows and the linux clock RTC is set to local time, let windows do the change of time and reboot after that into linux.
It is the simpler way to fix this matter.
 
Old 10-31-2005, 10:33 PM   #8
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Ok that works. Still, I read something about ntpd handling it and making the change slowly so it doesn't mess anything up... was I just interpreting that wrong?
 
Old 11-01-2005, 09:25 AM   #9
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
I think what you read was about adjusting the speed of the system clock slowly if it is too slow or too fast. It is not about DST change of time.
 
  


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
Disabling auto conversion to daylight savings time Saxton Linux - General 3 02-12-2009 08:13 AM
Turning Off Daylight Savings Time troy.porter Red Hat 1 03-10-2007 12:02 PM
Daylight savings time Jeebizz Slackware 13 11-21-2005 08:08 PM
Daylight Savings Time and Linux cereal83 Linux - General 6 10-31-2005 05:28 PM
Daylight savings time Problem bogus__13 Linux - General 1 04-04-2005 10:09 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration