View previous topic :: View next topic |
Author |
Message |
kentsin n00b
Joined: 08 Dec 2002 Posts: 58 Location: Macao
|
Posted: Mon Sep 01, 2003 1:56 pm Post subject: Clock always wrong |
|
|
The new 1.4 box always have wrong time. /etc/rc.conf is set to local, the /etc/localtime is linked to /usr/share/zoneinfo/Asia/Macao. I set the bios clock to localtime, after boot, date always give a time diff in one hours.
What is the problem? Shall I submit this as bug? |
|
Back to top |
|
|
kitano Apprentice
Joined: 19 Dec 2002 Posts: 228 Location: Munich, Germany, Europe, Earth
|
Posted: Mon Sep 01, 2003 2:25 pm Post subject: |
|
|
what does
Code: | hwclock --localtime |
and
say, and what is the output of date at this time? _________________ ->searched for a gentoo penguin ->alienated it with "find edges", "saturation", "photocopy" ->encoded quicktime from still ->played with aaxine ->screenshotted ->made it my avatar
only in case you were going to ask what it is... |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Mon Sep 01, 2003 2:30 pm Post subject: |
|
|
no, this should work.
what does the following code tell you:
Code: |
rm /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Macao /etc/localtime
date
hwclock
|
|
|
Back to top |
|
|
kentsin n00b
Joined: 08 Dec 2002 Posts: 58 Location: Macao
|
Posted: Fri Sep 05, 2003 1:32 am Post subject: I think I found the answer |
|
|
I think I found the problem:
the internet gateway on the local network have a wrong clock. It seems the gentoo box sync its clock on boot up against the gateway.
Thanks a lot for help. |
|
Back to top |
|
|
drekka Tux's lil' helper
Joined: 06 Jul 2003 Posts: 111
|
Posted: Wed Oct 01, 2003 12:49 pm Post subject: |
|
|
I have this problem too and everything looks right according to what I'm reading in these forums. I live in Melbourne Australia. /etc/localtime is pointing at /usr/share/zoneinfo/Australia/Melbourne.
I've tried both UTC and local as settings in rc.conf.
But everytime I start the computer the clock is out. It looks as if it is starting the clock at the time I shut it down, as if the computer had not bene turned off. After a week or so the clock is out by days.
I've noticed messages when the system is starting services about RTC stuff not being found or something but I don't know how to deal with this.
This is driving me nuts having to constantly reset the clock.
How do I fix it ????
cio
Derek. _________________ Regards,
Derek
<nb>Reality is not what you think</nb> |
|
Back to top |
|
|
Artie_Effim n00b
Joined: 14 Nov 2002 Posts: 25
|
Posted: Wed Oct 01, 2003 1:13 pm Post subject: |
|
|
You can always install ntp. |
|
Back to top |
|
|
drekka Tux's lil' helper
Joined: 06 Jul 2003 Posts: 111
|
Posted: Wed Oct 01, 2003 2:23 pm Post subject: |
|
|
The basic problem with that is I don't want to have to be connected to the net to have my clock correct.
cio
Derek. _________________ Regards,
Derek
<nb>Reality is not what you think</nb> |
|
Back to top |
|
|
DerMojo Guru
Joined: 14 Aug 2003 Posts: 395 Location: Germany
|
Posted: Thu Oct 02, 2003 10:44 am Post subject: |
|
|
Hi!
I've hade the experience: When your clocks stops working after turning your pc off, try a new battery on your bios.
No joke, there is one!
Daniel _________________ To err is human, to forgive, beyond the scope of the Operating System. |
|
Back to top |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Thu Oct 02, 2003 11:09 am Post subject: |
|
|
I was thinking about that too
It happend to me on my old gateway.
Tó
DerMojo wrote: | Hi!
I've hade the experience: When your clocks stops working after turning your pc off, try a new battery on your bios.
No joke, there is one!
Daniel |
_________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
|
drekka Tux's lil' helper
Joined: 06 Jul 2003 Posts: 111
|
Posted: Thu Oct 02, 2003 12:22 pm Post subject: |
|
|
I'm familiar with that issue. The mobo is only 6 months old and this issue only happens when I boot linux. Nice try
It mixed be fixed thouhg, I just booted tonight and the clock was correct. After reading some posts last night I deleted the /etc/adjtime file and used hwclock to set the time. Looks like it's now fixed.
cio
Derek. _________________ Regards,
Derek
<nb>Reality is not what you think</nb> |
|
Back to top |
|
|
|