How to set default Timezone via htaccess in cPanel? [STEP BY STEP]☑️
Here in this article we will describe you “How to change default Time Zone permanently in cPanel via .htaccess file.”
🔴 LIVE Video Tutorial- How to set default Timezone via htaccess in cPanel?
Follow the steps to set default timezone in cPanel:
Step::1 Login to your cPanel dashboard
Step::2 Click on File Manager section and go to Public_html
Step::3 Create a file in the name of testing.php or test.php
Step::4 Now right click over the file and choose Edit
Step::5 Place the codes given below
echo "Today is " . date("Y/m/d") . "<br>";
echo "The time is " . date("h:i:sa");
Step::6 Now again go back to public_html and Edit .htaccess file. If you are unable to find .htaccess file inside your public_html, simply create one
Step::7 Once you have the .htaccess file, place the code given below
php_value date.timezone ="Asia/Kolkata"
Don’t forget to save the files.
Now try to open this testing.php file in a new tab. You will find that your website is showing the correct time.
Thanks for Reading this article…We hope this was helpful to you all!!
For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channel –https://youtube.com/redserverhost.com
Facebook Page– https://facebook.com/redserverhost
Twitter Page– https://twitter.com/redserverhost.com
If you have any suggestions or problems related to this tutorial, please let us know via the comment section below.
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