Global Header
3 Mins Read

How to Change Reported Time Zone in PHP

Home Blog Hosting How to Change Reported Time Zone in PHP
Joomla Extensions: Boost Your Site's Power and Performance

Adjusting the time zone settings on your Bluehost-hosted site helps ensure that time-sensitive features like scheduled tasks and timestamps function accurately. It’s a quick way to keep your site aligned with your local time or your audience’s region.

Check the list of supported time zones by PHP at http://php.net/timezones.

Configure Time Zone in PHP

Follow these steps to change your reported time zone in PHP:

  1. Log in to your Bluehost Account Manager.
  2. Click Hosting from the side navigation menu to the left.
    Hosting option
  3. Go to the FILES & ACCESS tab and click MANAGE on the File Manager tile.
    FILE MANGER button
  4. Open the public_html folder.
  5. Click the Settings button at the top right corner.
    Settings button, Show hidden files check box, and Save button
  6. Make sure that there is a check mark on Show Hidden Files (dotfiles), then hit Save.
  7. Navigate to the folder that contains the .htaccess file and click the Edit icon in the Toolbar.
  8. Alternatively, you can right-click on the selected file and click on Edit from the drop-down menu.
  9. Click on the Edit button again.
  10. Press Ctrl+F (Shortcut to find the section easily) and enter the <IfModule lsapi_module>.
  11. For example, you can add the line php_value date.timezone “America/Denver.” Check the list of supported time zones by PHP at http://php.net/timezones.Time Zone
  12. Click the Save Changes button in the top-right corner of your screen.

Summary

To adjust the time zone for a PHP application, you will need to add a line in your .htaccess file. Log in to your Account Manager, then access your File Manager from there. Once you open your File Manager, look for your .htaccess file and make the necessary changes to your “php_value date.timezone” to successfully change the reported time zone in PHP.

  • I'm Sampreet, a seasoned technical writer with a passion for simplifying complex topics into a clear and engaging content. At times when I'm not crafting a piece of guide, you'll find me playing cricket/ football or exploring new destinations and reading autobiographies of influential personalities.

Learn more about Bluehost Editorial Guidelines
View All

Write A Comment

Your email address will not be published. Required fields are marked *

Longest running WordPress.org recommended host.

Get Up to 61% off on hosting for WordPress Websites and Stores.

Table of Contents