You can change your hosting account time zone for PHP applications through custom php.ini under your hosting account. You can place custom php.ini under root directory of your php application (for PHP 5.3 or latest versions). Please follow below instructions to edit / update .htaccess file to change DNS Zone:
Update timezone in custom php.ini file using File Manager (cPanel hosting account)
- Logon to your cPanel acccount >> File Manager
- if you not able to see php.ini file, please click on Settings in File Manager and Select ‘Show Hidden Files’. Save it.
- Select .htacccess file and click on Edit button
- If there is no php.ini file listed, click on new file button in File Manager
- Type below lines and click on save button to save changes:
#Set default time zone for PHP
date.timezone = “US/Central”
- 4: All is done.
You can see list of supported time zones here: http://www.php.net/manual/en/timezones.php
How to change timezone in php through ssh / command shell
- If you have access to SSH, please logon to your server with cPanel account
- Edit .htacccess with your favorite shell editor , like nano or vi and save changes
nano /home/yourcpaccount/public_html/php.ini
- 0 Users Found This Useful
-
How can I change my Cpanel, Plesk, Windows VPS hosting panel password
Log into your Temok client by clicking on this link: https://clients.temok.pk/clientarea.php...
How to access cPanel, webmail , WHMcPanel: If you want to access cPanel please use the following URLhttps://domainname.com:2083...
How to access plesk and webmail in pleskPlesk control panel: if you want to access Plesk control panel use the following...