| View previous topic :: View next topic |
| Author |
Message |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Sat Dec 15, 2007 3:50 am Post subject: [SOLVED] Clock displays the wrong time - again *sigh* |
|
|
Hi,
Right now, the clock displays the worng time, and when I use the date command to make it right, the change doesn't stick upon reboot. How can I simply enter the new time/date and KEEP it that way?
Last edited by GivePeaceAChance on Thu Dec 20, 2007 9:08 pm; edited 3 times in total |
|
| Back to top |
|
 |
borfig Apprentice

Joined: 27 Oct 2004 Posts: 152 Location: segfault
|
Posted: Sat Dec 15, 2007 4:20 am Post subject: |
|
|
in /etc/cond.d/clock you should have:
| Code: | | CLOCK_SYSTOHC="yes" |
|
|
| Back to top |
|
 |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Sat Dec 15, 2007 5:53 am Post subject: |
|
|
| Cool, thanks. |
|
| Back to top |
|
 |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Thu Dec 20, 2007 5:18 am Post subject: |
|
|
So, I live in British Columbia, Canada, the current time is Thursday, December 20, 2:15 a.m. and my clock is displaying Wednesday, December 19, 7:15 pm. I use fluxbox. Here's my clock file:
/etc/conf.d/clock
| Code: |
# /etc/conf.d/clock
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time). If your clock is set to the local time, then
# set CLOCK to "local". Note that if you dual boot with Windows, then
# you should set it to "local".
CLOCK="local"
# Select the proper timezone. For valid values, peek inside of the
# /usr/share/zoneinfo/ directory. For example, some common values are
# "America/New_York" or "EST5EDT" or "Europe/Berlin".
TIMEZONE="Canada/Pacific"
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here.
CLOCK_OPTS=""
# If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.
CLOCK_SYSTOHC="yes"
### ALPHA SPECIFIC OPTIONS ###
# If your alpha uses the SRM console, set this to "yes".
SRM="no"
# If your alpha uses the ARC console, set this to "yes".
ARC="no"
|
|
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Thu Dec 20, 2007 3:01 pm Post subject: |
|
|
I believe I had the same problem as you, where the clock would persistently get the wrong time on reboot.
If you get the message "...Local time zone must be set--see zic manual page..." from
You have to set your time zone and then recompile your kernel
See this thread:
Local time zone must be set--see zic manual page [ SOLVED ] _________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
-Hailstorm- n00b

Joined: 08 Nov 2007 Posts: 34 Location: Budapest, Hungary
|
Posted: Thu Dec 20, 2007 3:10 pm Post subject: |
|
|
You simply need to set the system time (in BIOS) to GMT which is EST+5 or PST+8. In etc/conf.d/clock you should have CLOCK="UTC" . You also have the set your timezone properly. _________________ Every time you look at the future, it changes - because you looked at it. |
|
| Back to top |
|
 |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Thu Dec 20, 2007 6:32 pm Post subject: |
|
|
OK, I set the bios clock to say the right time, but I think Gentoo resets the time when it shuts down. Anyway, at this moment, after about 3 times of changing it in the bios (by the time I got to the gentoo login screen, it was still not right), however it's probably going to be wrong once I restart my comp. I'll go check out those links now, though, now that I've played with my bios.
EDIT:
Output of uname -a:
| Code: | | Linux GentooHost 2.6.21-gentoo-r4 #13 SMP Tue Aug 14 05:19:50 PDT 2007 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GenuineIntel GNU/Linux |
So I don't think I need zic, as that one thread suggests.
Output of date:
| Code: | | Thu Dec 20 15:29:51 PST 2007 |
*Seems* to be working.
I'll check the other link now. |
|
| Back to top |
|
 |
OmSai Guru


Joined: 29 Sep 2007 Posts: 565 Location: Manchester, CT, USA
|
Posted: Thu Dec 20, 2007 6:50 pm Post subject: |
|
|
| GivePeaceAChance wrote: | | OK, I set the bios clock to say the right time, but I think Gentoo resets the time when it shuts down. Anyway, at this moment, after about 3 times of changing it in the bios (by the time I got to the gentoo login screen, it was still not right), however it's probably going to be wrong once I restart my comp. | In that case make this change to your clock file:
| /etc/conf.d/clock: | # If you want to set the Hardware Clock to the current System Time
# during shutdown, then say "yes" here.
CLOCK_SYSTOHC="no" |
_________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
| Back to top |
|
 |
-Hailstorm- n00b

Joined: 08 Nov 2007 Posts: 34 Location: Budapest, Hungary
|
Posted: Thu Dec 20, 2007 6:54 pm Post subject: |
|
|
| -Hailstorm- wrote: | | You simply need to set the system time (in BIOS) to GMT which is EST+5 or PST+8. In etc/conf.d/clock you should have CLOCK="UTC" . You also have the set your timezone properly. |
I also suggest you set CLOCK_SYSTOHC="no".
So first set this in /etc/conf.d/time . Make sure you have CLOCK="UTC" set. Then do: cp /usr/share/zoneinfo/Canada/Pacific /etc/localtime . Now reboot your computer and set the GMT time in BIOS which is your local time +8 hours if i'm correct.
Please follow these steps and post the result. _________________ Every time you look at the future, it changes - because you looked at it. |
|
| Back to top |
|
 |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Thu Dec 20, 2007 9:07 pm Post subject: |
|
|
Seems to be working right now, given the latest instructions by Hailstorm. If it doesn't work later on, I'll be sure to use this thread as a starter and go from there. Thanks guys. |
|
| Back to top |
|
 |
|