Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 53278

Summary: Localtime additional set to fix problem with hwclock
Product: [OLD] Docs-user Reporter: Cameron Crothers <JProgrammer>
Component: Gentoo Linux x86 Installation GuideAssignee: Docs Team <docs-team>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://forums.gentoo.org/viewtopic.php?p=1196343
Whiteboard:
Package list:
Runtime testing required: ---

Description Cameron Crothers 2004-06-08 00:08:18 UTC
I came across this problem with my time always being out so I asked the forum but didn't realy find an answer there I eventually figured it out with a simple

hwclock --localtime

which fixed this problem

Maybe the Installation Guide should add this step noting for local time setup so new installers don't run into this problem.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-02 09:21:44 UTC
What problem?
Comment 2 Cameron Crothers 2004-07-02 16:41:23 UTC
When only the rc.conf CLOCK is set to "local" when Gentoo has run as the default "GMT" you need to run `hwclock --localtime` to get the time to sync properly. No one on the forums helped and I finally figured it out myself and thought it would be a good addition to the documentation.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-03 01:46:30 UTC
I don't see the- problem. My system also has CLOCK="local" and I never had to run "hwclock --localtime". You say "when Gentoo has run as the default GMT"; does this mean the command is for _after_ a Gentoo installation?

During the Gentoo installation we ask the user to set the date/time correct (Chapter 5, first section). Do you mean that the command doesn't work? I can hardly believe this is the case. Or do you mean that, when you run "date" that the date is displayed wrongly? 

If the latter, than we already inform the user how to adjust this. Your way (using hwclock --localtime) might help some users (where the wrongfully displayed date is due to the utc/localtime conversion) but not all. The command we provide is a catch-all and should always work.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-31 05:07:44 UTC
**timeout**