Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Clock displays the wrong time - again *sigh*
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Sat Dec 15, 2007 3:50 am    Post subject: [SOLVED] Clock displays the wrong time - again *sigh* Reply with quote

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
View user's profile Send private message
borfig
Apprentice
Apprentice


Joined: 27 Oct 2004
Posts: 152
Location: segfault

PostPosted: Sat Dec 15, 2007 4:20 am    Post subject: Reply with quote

in /etc/cond.d/clock you should have:
Code:
CLOCK_SYSTOHC="yes"
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Sat Dec 15, 2007 5:53 am    Post subject: Reply with quote

Cool, thanks.
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Thu Dec 20, 2007 5:18 am    Post subject: Reply with quote

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
View user's profile Send private message
OmSai
Guru
Guru


Joined: 29 Sep 2007
Posts: 565
Location: Manchester, CT, USA

PostPosted: Thu Dec 20, 2007 3:01 pm    Post subject: Reply with quote

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
Code:
uname -a
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
View user's profile Send private message
-Hailstorm-
n00b
n00b


Joined: 08 Nov 2007
Posts: 34
Location: Budapest, Hungary

PostPosted: Thu Dec 20, 2007 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Thu Dec 20, 2007 6:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
OmSai
Guru
Guru


Joined: 29 Sep 2007
Posts: 565
Location: Manchester, CT, USA

PostPosted: Thu Dec 20, 2007 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
-Hailstorm-
n00b
n00b


Joined: 08 Nov 2007
Posts: 34
Location: Budapest, Hungary

PostPosted: Thu Dec 20, 2007 6:54 pm    Post subject: Reply with quote

-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
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Thu Dec 20, 2007 9:07 pm    Post subject: Reply with quote

Seems to be working right now, given the latest instructions by Hailstorm. :P 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum