Gentoo Wiki


This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

This article is still a Stub. You can help Gentoo-Wiki by expanding it.

The Clock FIle

Edit /etc/conf.d/clock:

File: /etc/conf.d/clock





This will automatically set your hardware clock from the system clock during shutdown. This is needed to have a correct time during boot, since the hardware clocks in normal PCs tend to wander off with time. The system clock is done using the CPU and thus quite accurate. You may wish to also use ntpd, though.

You may also want to set your clock to local time rather than UTC time. This is generally not a good idea especially for dual-boot users since Windows expects the hardware clock to be set by default to the local time.

File: /etc/conf.d/clock





The problem with this setting is at the time in the hardware will be changed by each OS when the time is changing from summer time to winter time (or from winter time to summer time). You will get the correct time after booting the first OS, but a shift of one more hour after booting the second OS because all the OS must use the same setting (local or utc).

The best thing to do in this case is to change to utc. Process as explained here for linux. On windows, edit HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal to 1 in the register basis. Vista seam not able to use UTC time at all with the RTC according to this article, so Vista users will become mad at time shifting. According to Microsoft-Novell plan, this issue is high on their TODO list, so maybe at it is fixed at that time.

For Windows XP the right registry key is HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/TimeZoneInformation/RealTimeIsUniversal and it's value should be 1. If that key doesn't exist, you should create it.

As I don't use windows anymore, I don't know more about it. But I remember very well at I just get mad with the local time when all was working fine with UTC after adjusting the register basis, and that both on 95, 98 and XP.

Retrieved from ""

Last modified: Tue, 01 Apr 2008 06:41:00 +0000 Hits: 9,514