How to set default Timezone via htaccess in cPanel?

How to set default Timezone via htaccess in cPanel? [STEP BY STEP]☑️

Hello Friends,

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

How to set default Timezone via htaccess in cPanel

Step::2 Click on File Manager section and go to Public_html

How to set default Timezone via htaccess in cPanel

How to set default Timezone via htaccess in cPanel

Step::3 Create a file in the name of testing.php or test.php

How to set default Timezone via htaccess in cPanel

Step::4 Now right click over the file and choose Edit

How to set default Timezone via htaccess in cPanel

Step::5 Place the codes given below

<?php
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

How to set default Timezone via htaccess in cPanel

Step::7 Once you have the .htaccess file, place the code given below

<IfModule php5_module>
 php_value date.timezone ="Asia/Kolkata"
</IfModule>

How to set default Timezone via htaccess in cPanel

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.

How to set default Timezone via htaccess in cPanel

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 channelhttps://youtube.com/redserverhost.com 

Facebook Page https://facebook.com/redserverhost

Twitter Pagehttps://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 hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting