Steps to change Timezone in PHP
To change the set timezone option in PHP, you need to insert a line of code into your php.ini.file. The location that you set in the code will determine the time displayed in your PHP scripts.- Log in to your Bluehost account
- Go to the cPanel
If you have a Bluerock account:
- Go to the Advanced tab, click on the Files section and select Files Manager
- Open the public_html folder
- Go to the folder that contains the .htaccess file and click on the Edit button Or you can right click on the selected files and click on Edit from the drop-down menu
- Press Ctrl+F to find the section and enter the <IfModule lsapi_module>
- Add this line php-value date.timezone. “America/Denver”

If you have a Legacy account,
- Log into your Bluehost cPanel
- Locate the File Manager under the Files category
- Choose to open Web Root and Show hidden files, then click the submit button
- Go to the folder containing the PHP.INI file
- Press Ctrl+F (Shortcut to find section easily) and enter the <IfModule lsapi_module>
- Add this line php_value date.timezone “America/Denver”
- Change the location as per the timezone you wish to use
- Once done, click the Save Changes button towards the top right side of your screen
Write A Comment