Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53278 - Localtime additional set to fix problem with hwclock
Summary: Localtime additional set to fix problem with hwclock
Status: RESOLVED WORKSFORME
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Docs Team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-08 00:08 UTC by Cameron Crothers
Modified: 2004-07-31 05:07 UTC (History)
0 users

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 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**