Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Installed, but timezone problem
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
gogisnim
n00b
n00b


Joined: 30 Aug 2007
Posts: 4
Location: Seoul, South Korea

PostPosted: Thu Aug 30, 2007 3:43 pm    Post subject: [solved] Installed, but timezone problem Reply with quote

Hi, everyone.

I'm from Seoul in South Korea and gentoo user.
When I installed gentoo system at first, I set timezone in GMT casually.

Code:

# cp /usr/share/zoneinfo/GMT /etc/localtime


After installing gentoo, it's no problem.

Oneday I know that system time is GMT, so I changed /etc/localtime and I get server time with rdate in time.bora.net(Korea time server).
rebooting.

Code:

# cp /usr/share/zoninfo/Asia/Seoul /etc/localtime
# rdate -s time.bora.net
# reboot


System time ain¡¯t what I used to be.
Current local time in Seoul is GMT + 9 hours.

If current local time in Seoul is Friday is August 31, 2007 at 13:00:00, my system display this.

Code:

# date
Fri Aug 31 22:00:00 KST 2007
#


System time is 9 hours faster than current local time in Seoul.


This is my system info.

Code:

# hwclock -r
Fri Aug 31 13:00:00 2007 -0.272763 seconds

# date
Fri Aug 31 22:00:00 KST 2007

# cat /etc/conf.d/clock
CLOCK="local"
TIMEZONE="Asia/Seoul"
CLOCK_SYSTOHC="no"
SRM="no"
ARC="no"


Thank you.


Last edited by gogisnim on Fri Aug 31, 2007 4:04 pm; edited 2 times in total
Back to top
View user's profile Send private message
dawn chorus
n00b
n00b


Joined: 04 May 2007
Posts: 44
Location: SouthEast USA

PostPosted: Thu Aug 30, 2007 4:12 pm    Post subject: Reply with quote

Try changing CLOCK_SYSTOHC="no" to = "yes".

This will set the hardware clock to localtime during shutdown. You may also want to look into ntp, which will sync your clock with an online server every boot.

http://gentoo-wiki.com/HOWTO_NTP


Hope that helps.


Billy
_________________
~~0~~
Back to top
View user's profile Send private message
Stever
Apprentice
Apprentice


Joined: 01 Mar 2005
Posts: 151
Location: North Carolina

PostPosted: Thu Aug 30, 2007 4:24 pm    Post subject: Reply with quote

Also, check the contents of /etc/adjtime. It is possible that hwclock remembers that you were once set to UTC.
What do you get if you do
Code:
# hwclock --localtime


Unrelated to your problem, but it is probably better to make /etc/localtime a symlink instead of copying - this way if the timezone data gets updated you will not need to do anything more.

Code:
# rm /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
Back to top
View user's profile Send private message
gogisnim
n00b
n00b


Joined: 30 Aug 2007
Posts: 4
Location: Seoul, South Korea

PostPosted: Thu Aug 30, 2007 4:45 pm    Post subject: Reply with quote

Thanks for reply.

But it's not easy.. :cry:
Back to top
View user's profile Send private message
dawn chorus
n00b
n00b


Joined: 04 May 2007
Posts: 44
Location: SouthEast USA

PostPosted: Thu Aug 30, 2007 5:08 pm    Post subject: Reply with quote

gogisnim wrote:
Thanks for reply.

But it's not easy.. :cry:

I found that most of what's written in that wiki page didnt' apply to me.

All I did was

Code:
# emerge -av ntp
# nano /etc/ntp.conf  #added 'server <my_preferred_server>' to the bottom
# rc-update add ntpd default
# /etc/init.d/ntpd start


You might need to do more than just this because of your unique circumstances. That's where the wiki will come in handy. Let us know if you need more help.
_________________
~~0~~
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Aug 30, 2007 5:54 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
not about getting gentoo installed, so moved here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
gogisnim
n00b
n00b


Joined: 30 Aug 2007
Posts: 4
Location: Seoul, South Korea

PostPosted: Fri Aug 31, 2007 4:02 pm    Post subject: Reply with quote

I solved it with the help of you, Korean Linux Document Project and googling.
Thank you Everyone.

# rdate -s time.bora.net
# rm -f /etc/adjtime
# rm -f /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# hwclock -w

# cat /etc/conf.d/clock
CLOCK="local"
TIMEZONE=""
CLOCK_SYSTOHC="yes"
SRM="no"
ARC="no"

# reboot
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