Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93365 - Gentoo install docs fails to mention CLOCK statement to possibly add to /etc/rc.conf
Summary: Gentoo install docs fails to mention CLOCK statement to possibly add to /etc/...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 12:55 UTC by Rob
Modified: 2005-05-23 11:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob 2005-05-20 12:55:11 UTC
The default rc.conf does not contain the CLOCK="" line.  Thus it ends up
defaulting to UTC which causes clock skew.

Solution:  Add the CLOCK="" line to /etc/rc.conf

Reproducible: Always
Steps to Reproduce:
1.boot with unmodified rcl.conf
2.type "date"
3.see clock skew

Actual Results:  
Saw the clock skew.   Had to reset the clock using the "date" command

Expected Results:  
Solution:  Add the CLOCK="" line to /etc/rc.conf or instruct the installer
during the install to add the line CLOCK="local"

NONE
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-05-20 12:57:58 UTC
the problem with this is that many BIOSs are set to UTC or any other number of
time zones which aren't necessarily the user's local zone...

a fix would be nice, however. i remember struggling with this a year or so ago
when i first installed gentoo
Comment 2 Rob 2005-05-20 12:59:43 UTC
Some people whose bioses use local-time will need a local clock setting
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2005-05-20 13:00:57 UTC
Are you referring to instructions in documentation, or actual /etc/rc.conf   
provided by sys-apps/baselayout?   
   
Anyway, http://www.gentoo.org/doc/en/guide-localization.xml has instructions   
about setting clock. 
Comment 4 Jonathan Smith (RETIRED) gentoo-dev 2005-05-20 13:05:09 UTC
oh, a few more things. /etc/rc.conf CLOCK settings are being depreciated in the
new baselayout... /etc/conf.d/clock will be used instead

if gentoo users modify /etc/conf.d/clock, saying CLOCK_SYSTOHC="yes", and set
CLOCK="local", this problem is easily fixed.

using ntp and the above method before shutting down also should sync the
hardware clock to atomic time, a very useful feature

(this bug should not be labled "major")
Comment 5 Rob 2005-05-20 14:46:50 UTC
absorbed additional info on new baselayout.  Thanks!  Rob
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2005-05-23 11:15:22 UTC
Added:

"""
If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to
the file. Otherwise you will notice some clock skew.
"""

Fixed in CVS.