Change Timezone and set time & date for CentOS

ChangeTimezone

cd /usr/share/zoneinfo/Asia/

cp /etc/localtime /etc/localtime-ori

cp Jakarta /etc/localtime

Set time and date

date MMDDhhmmYYYY

Example:
date 043017212008


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 Jakarta /etc/localtime


Sync your time

ntpdate pool.ntp.org


Confirm your date

date


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

yum install ntp


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Restore SSH Config via WHM

Problem login to SSH or forget your SSH port on cPanel Server, don't worry you can run this tools...

change ssh port

1. Login into your server as a root user pico -w /etc/ssh/sshd_config Find the line...

Fixing WHM problems automatically using JUPITER Tools :-D

Now you have angel hands for solving your WHM  related (selected) problems using JUPITER Tools ....

Full site backup and restore using Shell

You can generate full site backup from individual cPanel account. However, for some reason if you...

Cpanel/WHM Script List

WARNING: These scripts may not be "safe", they are mostly in perl so you can view them and check...