Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird time problems...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Ge(nto)org
n00b
n00b


Joined: 09 Aug 2004
Posts: 17

PostPosted: Mon Aug 09, 2004 8:56 am    Post subject: Weird time problems... Reply with quote

I recently installed Gentoo on my old Sony Vaio PCG-737 and experience some really strange problems with the clock (UTC):

1) I set the correct time. I shut down. (just a plain, ordinary shutdown -h now)
I wait, time passes. When I power on again, there is the correct time set in the BIOS. Linux boots. Now, umm, now isn't quite correct... ...some time is lost, depending on how long it was shut down. However, it is not exactly as much time lost as passed during shutdown... 8O

2) Today is Monday, 9th Day of August, 2004. However date returns:
Tue Aug 9 10:27:43 CEST 2004
How can I fix this? Already read the man pages... ...there seems to be no way to set the correct day of the week?! :?

thx, georg
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Mon Aug 09, 2004 9:02 am    Post subject: Reply with quote

Code:
ln -s /usr/share/zoneinfo/... /etc/localtime

Code:
set time to local or UTC in /etc/rc.conf


remove /etc/adjtime if it exists, I had this problem when I changed timezones

good luck
Back to top
View user's profile Send private message
Ge(nto)org
n00b
n00b


Joined: 09 Aug 2004
Posts: 17

PostPosted: Tue Aug 10, 2004 1:59 pm    Post subject: Reply with quote

thx a lot! :D
removing /etc/adjtime did help...
Back to top
View user's profile Send private message
qzec
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2004
Posts: 89

PostPosted: Tue Aug 10, 2004 5:11 pm    Post subject: Reply with quote

What is /etc/adjtime for though and is it really safe to remove?

Q
Back to top
View user's profile Send private message
snkmoorthy
Guru
Guru


Joined: 19 Nov 2002
Posts: 376

PostPosted: Wed Aug 11, 2004 8:57 am    Post subject: Reply with quote

it is created by /etc/init.d/clock, take a look it is pretty simple, it manipulates "hwclock" to get the system time.

the /etc/adjtime will be created if it doesn't exist by this script, everytime
Back to top
View user's profile Send private message
qzec
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2004
Posts: 89

PostPosted: Wed Aug 11, 2004 9:51 pm    Post subject: Reply with quote

Ahh, I see...

Thanks,

Q
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
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