Clock Ignores Return To Standard Time
I am using Slackware 13.37, 32-bit, KDE desktop environment. Not much of an expert with Linux but willing to learn...
North America went back to Standard Time this past Sunday at 2:00 AM. The clock of my 13.37 install ignores this fact. When I installed Slackware, I selected the option specifying that my hardware clock is not set to UTC/GMT. My desktop is too old for having such an option in the BIOS anyhow. I also made sure to select the correct time zone where I live within the USA and to pick a time server for time synchronization. Therefore, when I turned my desktop on yesterday, I was expecting the clock to sync with the time server and show the correct Standard Time for my time zone. Instead, it was still one hour ahead. Today nothing has changed! Doesn't Slackware sync time with the server upon booting up? Or do I have to manually adjust the time myself when Daylight Savings Time starts/ends? |
Quote:
If you have not installed all the patches, you might Code:
su - (or sudo or log in as root) Code:
date Hope this helps some. |
Here's a thread from last year on the same subject...
http://www.linuxquestions.org/questi...3-37-a-912141/ My takeaway was that you either need to have the hardware clock set to UTC, run NTPD, or leave your system on overnight twice a year. You probably have an error message in /var/log/messages from ntp that says something like too big an offset to adjust the time. |
You could just keep your computer off until March 10, 2013 when we move forward again. ;-)
|
Syncing to a network time source (NTP server) has nothing to do with time zones or Daylight Saving Time. The NTP server keeps your clock synchronized but it works in UTC, so it won't help with your timezone or DST adjustment. That is up to your local system.
There is no such thing as a BIOS "too old" for UTC. If your PC runs only Linux, you can just set your BIOS clock to the current UTC date and time, and tell Slackware that your hardware clock is set to UTC. Your timezone and DST will adjust automatically. If, however, your PC also boots Windows, you probably need to set the BIOS clock to local time for Windows. (And if I recall Windows will change your hardware clock the first time it boots after DST starts and ends.) And, of course, take a look at http://wondermark.com/883/ for another possible solution... |
Turns out that I have an older Dell Dimension 8400 that's just been sitting in a closet turned off for, oh, two weeks or so; it's running Slackware 13.37 with all patches applied. The hardware clock is set to UTC. I just turned it on and, yup, it's the right time:
Code:
date Code:
ntpq -pn If you are dual-booting Windows you can stop this behavior by booting it, click Control Panel, click Date and Time, click Time Zone and remove the check mark from Automatically Adjust for Daylight Time (this assumes XP, the same thing is doable in Vista or Win 7 in slightly different ways). On the other hand, if you're not dual-booting, you can simply set the hardware clock to UTC using, say, http://www.time.gov/timezone.cgi?UTC/s/0, select UTC at the lower right of the green map display then Code:
su - (or sudo or log in as root) Now, to set the hardware clock to UTC, just look at the UTC displayed time at NIST and round it up to the next 30 second or minute (to give you enough time to type the thing, eh?), UTC right now is 14:32:21 so I'll round to the next mintute Code:
hwclock --set --utc --date="11/07/2012 14:33:00" Then you need to worry about system time. Bear in mind that there is only one actual clock (the hardware clock) and system time is software (it's a clock in the kernel driven by a timer interrupt). At boot, the software looks at the hardware clock and gets set to whatever your local time zone is (in the eastern time zone in the US, that's five hours earlier than UTC when not on daylight time). You can run timeconfig. Indicate that your hardware clock is set to UTC and select your time zone (eastern, central, etc.), reboot the thing and it should display the correct local time for you. You've indicated that you shut the computer off at night so setting your hardware clock to UTC is a really good idea so that when daylight time rolls around twice a year you won't have the one hour glitch; the time zone stuff will work properly setting your system time for daylight or not daylight when you boot it in the morning. It's also a good idea to set up NTP so that when you shut the system down the system time (which is what NTP keeps correct) is saved to the hardware clock -- that's part of the shutdown sequence, that saving system time to the hardware clock. They both drift and NTP is the best way to keep them on time. If you don't have an "always on" internet connection you want to manually start NTPD running after you've connected to the internet, say Code:
su - (or sudo or log in as root) Code:
server 127.127.1.0 # local clock Give this stuff a try and see. Hope this helps some. |
Thank you, Tronayne, for the effort made in addressing my problem!
I gather from your explanation that there is no way for Microsoft Windows and Slackware (and all other distros?) to coexist peacefully? I mean, if I set the hardware clock to UTC then the Windows clock will be wrong. On the other hand, if I do not set the hardware clock to UTC then it is Slackware that has clock problems... Ideally, I would like to leave the hardware clock set to local time so that it does not interfere with the Windows clock and find a solution within Slackware. The only way that I have found so far in order to solve this Daylight Savings Time/Standard Time thing is to first boot up Microsoft Windows, let Windows adjust the hardware clock, shut down Windows, boot up Slackware and voilą the clock is now set to the correct time for both OSs. But, Jeez, we are in the 21st century! There ought to be a more elegant way of solving this issue. I do not expect Microsoft to come up with a solution but I thought for sure that in Linux there would be one. What exactly am I doing when, within KDE, I have the clock set to the correct time zone and have a time server selected? Wouldn't KDE, upon being launched after booting up, poll the time server and adjust the Slackware clock according to the time zone selected, regardless of whether or not my hardware clock is set to UTC? Sorry, I am just a newbie trying to understand... |
Quote:
Quote:
Quote:
The "best" solution? Get VirtualBox, load XP into that and problem solved -- VirtualBox won't allow a Windows guest operating system fiddle with the hardware clock. But that's a whole different story. The problem is living in two radically different worlds and a good fix is to simply set your hardware clock to local time (in Linux) and shut off Windows' daylight time adjustment; the clocks will display correctly (even if Windows doesn't say DST). Hope this helps some. |
Quote:
There is a registry setting in Windows. Just Google something like "windows PC UTC clock". |
Quote:
|
All times are GMT -5. The time now is 12:54 PM. |