Portal Home Knowledgebase 2. cPanel Web Hosting How to Change Your Time Zone in cPanel

How to Change Your Time Zone in cPanel Print

  • 0

The term time zone is used for an area that observes a uniform standard for social, commercial, and legal purposes. Time zones typically follow boundaries between countries and their subdivisions instead of following longitude strictly because it is convenient for areas that often communicate to keep the same time.

If the incorrect time appears in applications, scripts, or services on your server, you can resolve this issue by resetting the time zone. In this article, we will show you how to change your time zone using cPanel.

Most commonly used PHP scripts let you set the time zones as one of their settings. For instance, WordPress has a dropdown list in the General menu found in the Settings. However, this isn’t always the case with all applications.

By default, applications use the time zone of the host server. You can change this setting if you are in a different time zone. Depending on the application you are using, the exact steps to do this will vary. Today, we will discuss how to do it using cPanel. The interface will display all timestamps in the new time zone right after you change the settings regarding the time zone.

date.timezone is a setting managed via the PHP configuration, which sets the script time zone of your PHP. Keep in mind that you cannot change the server time since all servers run on UTC without any exceptions. This helps prevent Daylight Savings Time errors and allows servers running in different time zones to interact. However, you can change the individual time zone in cPanel.

Steps to Change Time Zone in cPanel

Access cPanel: Log into your 4xhost cPanel account.

Select PHP Version: Click on the Select PHP Version button you will find in cPanel.

840

Switch to PHP Options: Click on the Switch to PHP Options tab, where all the php.ini values will be displayed, including the time zone field.

840

 

  1. Set Time Zone: Here, you will find date.timezone. Fill in the value that suits your needs. If you are not sure what the time zone of your country is, you can find it at this link: PHP Time Zones.

  2. Confirm Changes: Once you’ve done this, click anywhere outside the text input or dropdown box. A green box will appear with a message confirming that the change has been applied, indicating that the change was successful.

  3. Synchronize Time: You may also synchronize your server to the time server of your network, as determined by your hosting provider. If the time of your server is incorrect, this can be especially useful. To synchronize the time of your server with the network time server, click on Sync Time with Time Server.

cPanel will update PHP a few moments after you’ve changed it to your preferred time zone. That’s it! Now you know how to change the time zone in cPanel, and you can instantly use it!

 

Was this answer helpful?

« Back