LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to update timezone after relinking /etc/localtime? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-update-timezone-after-relinking-etc-localtime-833295/)

password636 09-20-2010 04:13 AM

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

AlucardZero 09-20-2010 05:58 AM

Try logging out and back in

whk 09-20-2010 11:17 AM

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


All times are GMT -5. The time now is 06:20 AM.