How can I change timezone for my webhosting account ?

Started by Dipak Bhoi, June 18, 2014, 04:06:48 PM

Previous topic - Next topic

Dipak Bhoi

Hello guys,

This post will help you to show your local time zone on your website instead of server time.

You can change the timezone for your account  by adding this rule into .htaccess file.

SetEnv TZ Timezone

For example, if you wish to change the timezone to India, you should add this line to your .htaccess file:

SetEnv TZ Asia/Kolkata

Save and close the file.

Now check your scripts will use your local time instead of the server time. You can check the list of the available timezones.

Enjoy !!!

MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.

Dipak Bhoi

Hello folks,

If above setting is not working for you then don't worry. Here is an another way to change timezone for your webhosting account. You just need to add the below line into your .htaccess file.

Quotephp_value date.timezone "Asia/Calcutta"

Enjoy !!! :)

MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.