• CentOS
  • How To's
  • How to Change Server Time in CentOS

    I just usually use HKT because it is the easiest and it is the same as PHT. (Philippines Time)
    1. Open a SSH/Terminal and type the following commands, and for windows user you can used putty to connect to server or you can access the Terminal by logging into VNC and right-clicking on the background, then select ‘Terminal’.

    ln -sf /usr/share/zoneinfo/Hongkong /etc/localtime
    

    Type in terminal to check your current time that has been setup.

    date

    Output on my linux CentOS VPS:
    [root@localhost ~]# ln -sf /usr/share/zoneinfo/Hongkong /etc/localtime
    [root@localhost ~]# date
    Fri Dec 26 10:33:32 PHT 2014
    [root@localhost ~]#
    Note:
    The first two letters is LN in lower-case.

    Leave a Reply

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

    1 mins