LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2010, 05:13 AM   #1
password636
Member
 
Registered: Jun 2006
Location: Beijing
Posts: 60

Rep: Reputation: 1
how to update timezone after relinking /etc/localtime?


Hi,

I wanted to change the timezone from Asia/Shanghai to Asia/Hong_Kong on RHEL5U5 in a non-interactive way.

After I executed the following command:
Code:
ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime
I checked the timezone with the 'setup' command, and found the timezone is still Asia/Shanghai.

Did I change the timezone to Asia/Hong_Kong successfully? Why the 'setup' program still shows the former timezone? Is there any other way to change timezone in a non-interactive way other than relinking the /etc/localtime?

THANKS
 
Old 09-20-2010, 06:58 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Try logging out and back in
 
Old 09-20-2010, 12:17 PM   #3
whk
Member
 
Registered: Jun 2005
Posts: 202

Rep: Reputation: 35
Checkout 'Tips' below for RH
http://www.wikihow.com/Change-the-Timezone-in-Linux

Be careful with hwclock. It can mess up your box on other OS's.
hth
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/localtime and /etc/timezone JockVSJock Linux - Newbie 1 05-01-2009 03:33 PM
timezone was changed after yum update montyleesam Linux - Server 1 04-22-2009 05:12 AM
updating legacy PPC RHEL 3.0 for timezone update issues Devilotx Linux - Server 1 03-09-2007 02:04 PM
Segmentation error when trying to update timezone files r0r0s Linux - Newbie 1 03-03-2007 08:25 PM
SuSE Linux 9.2: update timezone files r0r0s SUSE / openSUSE 1 03-01-2007 05:49 AM


All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration