View previous topic :: View next topic |
Author |
Message |
gogisnim n00b
Joined: 30 Aug 2007 Posts: 4 Location: Seoul, South Korea
|
Posted: Thu Aug 30, 2007 3:43 pm Post subject: [solved] Installed, but timezone problem |
|
|
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 |
|
|
dawn chorus n00b
Joined: 04 May 2007 Posts: 44 Location: SouthEast USA
|
Posted: Thu Aug 30, 2007 4:12 pm Post subject: |
|
|
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 |
|
|
Stever Apprentice
Joined: 01 Mar 2005 Posts: 151 Location: North Carolina
|
Posted: Thu Aug 30, 2007 4:24 pm Post subject: |
|
|
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 |
|
|
gogisnim n00b
Joined: 30 Aug 2007 Posts: 4 Location: Seoul, South Korea
|
Posted: Thu Aug 30, 2007 4:45 pm Post subject: |
|
|
Thanks for reply.
But it's not easy.. |
|
Back to top |
|
|
dawn chorus n00b
Joined: 04 May 2007 Posts: 44 Location: SouthEast USA
|
Posted: Thu Aug 30, 2007 5:08 pm Post subject: |
|
|
gogisnim wrote: | Thanks for reply.
But it's not easy.. |
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Thu Aug 30, 2007 5:54 pm Post subject: |
|
|
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 |
|
|
gogisnim n00b
Joined: 30 Aug 2007 Posts: 4 Location: Seoul, South Korea
|
Posted: Fri Aug 31, 2007 4:02 pm Post subject: |
|
|
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 |
|
|
|