Change Server Timezone in CentOS

It just happened that sometimes the server is using UTC time instead of our localtime.

[root@venus wiki]# date
Wed Oct 14 12:22:59 UTC 2015
[root@venus wiki]# cat /etc/localtime
TZif2UTCTZif2UTC
UTC0

Make a backup of the /etc/localtime

[root@venus wiki]# mv /etc/localtime /etc/localtime.bak

Symlink to our desired timezone. as a new /etc/localtime

[root@venus wiki]# ln -s /usr/share/zoneinfo/Asia/Ku
Kuala_Lumpur  Kuching       Kuwait
[root@venus wiki]# ln -s /usr/share/zoneinfo/Asia/Ku
Kuala_Lumpur  Kuching       Kuwait
[root@venus wiki]# ln -s /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime

test again

[root@venus wiki]# date
Wed Oct 14 20:54:52 MYT 2015

Done !

M.

Related Post

One Response

  1. namran says:

    Note: Installation of NX Server for Linux requires the download and installation of three packages: client, node and server. The client is needed because it ships libraries used by the node. The node is needed because it ships tools needed by the server. Furthermore, the SSH server daemon (SSHD) needs to be up and running on each of the NX Node machines since NX relies on the mechanism provided by the SSH subsystem for handling user authentication.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *