MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How can I change timezone for my webhosting account ?  (Read 4748 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
How can I change timezone for my webhosting account ?
« on: June 18, 2014, 04:06:48 PM »
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.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

How can I change timezone for my webhosting account ?
« on: June 18, 2014, 04:06:48 PM »

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
Re: How can I change timezone for my webhosting account ?
« Reply #1 on: February 21, 2015, 03:17:40 PM »
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.

Quote
php_value date.timezone "Asia/Calcutta"

Enjoy !!! :)

MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.