Am 30.05.2011 10:15, schrieb András Csányi:
> Hi All,
> 
> I have a little problem regarding time.  After every boot I have to
> setup my clock because about my machine the current time is +2 hour
> more. To be honest, this is a little bit annoying.
> What I did:
> 
> - According to install guide I have copied the
> /usr/share/zoneinfo/Europe/Budapest to /etc/localtime
> - According to localization guide [1] I have to set up the current
> timezone in the /etc/conf.d/clock file but this file is missing. I
> have checked it the original stage-3 pack from Hungarian mirror and I
> couldn't find there as well. I think this file is removed.
> 
> So my question is that, what should I do to have the current time
> automatically (I'm in Hungary/Budapest)? Should I make a new clock
> file?
> 
> [1] - http://www.gentoo.org/doc/en/guide-localization.xml
> 
> Thanks for any help in advance!
> 
> András
> 

First question: Are you dual-booting some other operating system?
Windows sets the hardware clock to local time, Linux expects it to be
UTC, by default. You can change this setting in /etc/conf.d/hwclock

In this file, you can also specify to set the hardware clock to whatever
the software clock tells. That might help you to restore the correct
time at boot.

The localization guide seems to be in a poor state. Copying the zoneinfo
file from /usr/share... to /etc/localtime is not the best way to do it
because then you miss updates. It is better to create a symlink between
the two. Also, instead of setting the timezone in /etc/conf.d/clock, you
do it in /etc/timezone nowadays (change introduced in baselayout-2 if
I'm not mistaken).

`echo Hungary/Budapest > /etc/timezone`
will do the trick.

Hope this helps,
Florian Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to