How to set time zone..?


In Cpanel Servers you can set the system time according to your time zone. Follow the below mentioned steps for this.

1. Select the appropriate time zone from the /usr/share/zoneinfo directory. Time zone names are relative to that directory. (eg :- Pacific/Easter)

ls /usr/share/zoneinfo

2. Edit the /etc/sysconfig/clock text file so that it looks like this:

ZONE=”Pacific/Easter”
UTC=true
ARC=false
3. Move the following file: /etc/localtime to back

mv /etc/localtime /etc/localtime_bak

4. Create a new soft link for /etc/localtime.

ln -s /usr/share/zoneinfo/Pacific/Easter /etc/localtime

5. Set the Hardware clock by typing the following command

/sbin/hwclock –systohc

6. Verify the time by typing the command date.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s