Change Timezone and set time & date for CentOS


cd /usr/share/zoneinfo/Asia/

cp /etc/localtime /etc/localtime-ori

cp Kuala_Lumpur /etc/localtime

Set time and date

date MMDDhhmmYYYY

date 043017212008

(that is the time of my posting)

MM - Two digit month number
DD - Two digit date
hh - Two digit 24 hour system hour
mm - Two digit minute
YYYY - Four digit year code

If conmmand above doesn't work, do the following

cd /usr/share/zoneinfo/Asia

ln -sf Kuala_Lumpur /etc/localtime

Sync your time


Confirm your date


If ntp is not install, you may run this to install ntp

yum install ntp

  • 51 Users Found This Useful
Was this answer helpful?

Related Articles

find large file

find / -type f -size +100000000c -ls This will list all file located at "/" that...

Installing DBD::mysql from source

wget tar xvzf DBI-1.56.tar.gz cd...

Can I increase my VPS plan without upgrade my package?

No. The only way you increase your RAM is to upgrade the currect package to a higher package. We...

Hardening Server included

  LSM (Linux Socket Monitoring) installed and configured - Function is to monitor ANY...

Where is the datacenter VPS located?

Windows VPS is located at Colo4Dallas Taxes US BlueSquare UK Linux VPS is...

Powered by WHMCompleteSolution