Webhosting Blog

Changing Time Zone for a particular account on cpanel server


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

View a complete list of available timezones at URL:: http://php.net/manual/en/timezones.php

Thats It!

Advertisements

5 responses

  1. Pingback: Changing Time Zone for a particular account on cpanel server … — cpanel hosting servers vps asp

  2. loving this blog more and more every day

    December 9, 2010 at 7:02 pm

  3. thanks for information. u rock!!!!!

    January 22, 2011 at 9:35 pm

  4. Pingback: Changing Date/Time Zone for a particular account using .htaccess « Linux Blog

  5. Pingback: Changing Date/Time Zone for a particular account using .htaccess « Linux Blog

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