How to change default Time Zone permanently via .htaccess file? [Important| Latest 2019]
We have done so much of hard work and experiments to make this easy for you..
Now in order to set IST timezone via .htaccess file you have to follow few steps which we have discovered [Updated May 2019]
- Login to your cPanel
- Go inside File Manager section and go to Public_html
- Create a file test.php
Edit this test.php file using the code given below:
echo “Today is ” . date(“Y/m/d”) . “<br>”;
echo “The time is ” . date(“h:i:sa”);
Now go inside public_html and Edit .htaccess file by using the code given below:
php_value date.timezone =”Asia/Kolkata”
You can now check it by running the URL from new tab
There is one more way to do this via MultiPHP INI Editor
- Simply login to Cpanel and go inside MultiPHP INI editor
- Click on Editor Mode
- Select your primary domain and edit a simple code given below and save it.
This method will also work!!! Try this out
Hope this helps you!!!!
Thanks for Reading!!!!
Tags: cheap linux hosting, buy linux hosting, cheap reseller hosting, buy reseller hosting, best reseller hosting, cheap web hosting, cheapest web hosting, cheapest reseller hosting, cheap reseller host, cheap linux host, cheapest linux hosting, best linux hosting, best web hosting