How to change your default timezone using .htaccess in cPanel?
Time on your website is not what you would expect and want to change it, you can change the timezone on your website using the .htaccess file.
In shared hosting providers are restricting access to php.ini file,but you can change the timezone by using the .htaccess file.
1) Log in to your cPanel.
2) Click ‘File Manager’ icon Under ‘FILES’ section.
3) Select ‘Settings’ at the right corner of the ‘File Manager’.
4) Select Document root of your domain and select ‘Show Hidden Files’.
5) Find ‘.htaccess’ and right click on it. It shows a menu. Click ‘Edit’ from the menu list.
6) Now you can add particular timezone setting to the .htaccess.
Paste the following code at the top of the page to configure your account. For example,
# Adjust default time zone
SetEnv TZ Asia/Kolkata
7) Click on ‘Save Changes’ button.