How to set time zone in linux dedicated servers?

Linux dedicated servers comes with full root access where the customization is possible as per the user’s requirement. Since the dedicated servers comes with full root access where you can create unlimited WHM accounts and unlimited cPanel accounts. In dedicated servers you will get control over entire server so everything is possible from user end.

Changing of time zone is possible in linux dedicated servers since it has full root access. So according to the user wish they can keep the time zone in their dedicated servers.

How to enable time zone for entire server?

1.Login to server via WHM as root

2.Home »Server Configuration »Server Time

3.Here you will be able to see current server time and time zone presently selected for the server

4.If you want to change time zone, choose the desired time zone and click on change time zone and sync time with time server

How to enable time zone for a particular domain?

In order to change the timezone for any particular account on the cPanel server you can follow following steps:

1) Login to the server as root.

2) Navigate to the home directory of the account.

[root@server~]

# cd /home/user/public_html

3) Open the .htaccess file. If it is not existing create it.

[root@server public_html]

# vi .htaccess

4) Insert the following line in it

SetEnv TZ “TimeZone”

or

php_value date.timezone “TimeZone”

Replace the TimeZone with appropriate time zone required. For Eg:: Asia/Calcutta