Changing Time Zone for a particular account on cpanel server

To change the Time zone for any particular account on the cPanel server you can do the following steps:

1) Login to the server as root.

2) Go to the home directory of the account.

cd /home/user/public_html

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

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.

Thats It!

Previously we have an article about HOW TO SET WEBSITE’S TIMEZONE USING PHP.INI